Coder Social home page Coder Social logo

Comments (6)

netzwerg avatar netzwerg commented on July 24, 2024

Calling the release task will not build a snapshot, but build a release, hence your build release scenario is covered.

Concerning publish release: This is out of this plugin's scope. The recommended approach depends on your definition of "publish":

  • For Artifactory publishing, I recommend the Gradle Artifactory Plugin
  • For GitHub publishing, you might want to look into my gradle-release-pub-plugin. It is two years old and very abandoned (there was no real interest), but it might serve as an inspiration.
  • ...

Hope this helps – Cheers, Rahel

from gradle-release-plugin.

chrisharris77 avatar chrisharris77 commented on July 24, 2024

from gradle-release-plugin.

netzwerg avatar netzwerg commented on July 24, 2024

Yep, your are right, there are currently no hooks to perform work in between the "tag version" and "update version" steps.

However, you could perform a git checkout <tag> right after the completion of release, and then call build and publish afterwards – could that work for you?

from gradle-release-plugin.

chrisharris77 avatar chrisharris77 commented on July 24, 2024

I suppose that would be a workaround if I can get the tag.

It would be much nicer to not have to drop to executing git commands though. It seems like doing work when the version is set to the release version would be a very common scenario. What about making the release task be a wrapper for sub tasks? Then users could choose to the release task as is, or invoke subtasks and mix with other tasks e.g. publish?

from gradle-release-plugin.

netzwerg avatar netzwerg commented on July 24, 2024

The tag is exposed via project.release.tagName.

I completely agree that we should offer cleaner solution – I am very open to pull requests. The suggested approach is really only a workaround, just so you are not blocked until a better solution is available.

from gradle-release-plugin.

chrisharris77 avatar chrisharris77 commented on July 24, 2024

OK I'll try that thanks.

from gradle-release-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.