Comments (6)
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.
from gradle-release-plugin.
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.
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.
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.
OK I'll try that thanks.
from gradle-release-plugin.
Related Issues (20)
- Should it be mentioned it works only with git?
- Push to current branch rather than master
- Multi-project setup: `release.dependsOn` configuration should not be mandatory HOT 7
- Clarify docs about the version pattern
- Provide different release tasks for upgrading different parts of the version HOT 1
- All tasks only increment patch version (in submodules) HOT 7
- Version.txt in subprojects HOT 2
- Stop relying on `project.afterEvaluate` for project version initialization
- Wrong message upon version parsing exception
- Could not determine the dependencies of task ':release' HOT 2
- Build succeeds even if git push fails HOT 7
- Master branch is moved after pushing with the plugin HOT 2
- pass in authentication credential and patch release HOT 2
- Add `releasePatchVersion` task (identical to current `release` task)
- git executable output needs to be logged before exiting HOT 10
- Support usage of abbreviated task names
- Issue with Single Quotes on Windows HOT 3
- Add support for flavor based version.txt HOT 1
- Unable the push tags HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gradle-release-plugin.