axion-release-plugin icon indicating copy to clipboard operation
axion-release-plugin copied to clipboard

Follow the dependencies between the submodules during the release

Open kboom opened this issue 5 years ago • 2 comments

Maintaining separate versions for sub-projects is very useful but then releasing must be done with care - projects with internal dependencies need to be released manually one after the other - dependencies first. It would be great to:

  1. Make the release task understand this and release the dependencies (if necessary) before attempting to release a selected module
  2. Make the release task release all modules of a gradle project according to a safe order.

Currently typing -Prelease.useHighestVersion -Prelease.disableChecks -Prelease.pushTagsOnly on the top level project won't work:

The project uses snapshot versions - can't release. Snapshots found: ...

Doing that from a scope of a project with dependencies won't work either. Of course this happens only when we use dependency(project(":submodule")) notation rather than dependency("my project:mymodule:x.y.z) which would be difficult to maintain

kboom avatar Dec 31 '19 14:12 kboom

Looks like task dependencies problem, can't it be achieved using custom task in Gradle with specified dependencies?

adamdubiel avatar Jan 03 '20 06:01 adamdubiel

I have addressed this issue in PR #326.

john-tipper avatar Jan 29 '20 00:01 john-tipper