paulrutter opened a new pull request, #600:
URL: https://github.com/apache/felix-dev/pull/600

   The Dependency Manager bundles are versioned separately, and the earlier 
releases only contained the bundles that changed. With the Maven build the 
release plugin releases the whole reactor, so a fix in one bundle (FELIX-6874 
and FELIX-6880 only touch `org.apache.felix.dependencymanager`) would republish 
four unchanged bundles.
   
   - `mvn -N exec:exec@release-plan` 
(`dependencymanager/release/ReleasePlan.java`, plain Java 11) finds the bundles 
that changed since the git tag of their latest release, and proposes the 
versions and the `release:prepare` command. The bundles that did not change are 
put back to the version they were released with. Changes to a bundle's pom, 
tests and docs are ignored, which the output points out.
   - While performing a release (`performRelease`), a bundle whose 
`<artifactId>-<version>` tag already exists on origin is neither deployed nor 
tagged. That is how the unchanged bundles are left out. A failing `git 
ls-remote` fails the build instead of deploying. The bundle tagging from #593 
moved from `exec-maven-plugin` to the antrun plugin, because the tagging has to 
be skipped for those bundles.
   - `README.release` describes how to release with Maven; the Gradle one was 
removed with the Gradle build.
   
   Plain `mvn release:prepare` and `mvn release:perform` still work, the plan 
only proposes the versions.
   
   Tested in a scratch git repo with a bare remote: a release-style `deploy` 
skips a bundle whose tag exists, and deploys and tags the others; the plan 
reports only the changed bundle as changed; a dry-run `release:prepare` with 
the proposed `-Dproject.rel/dev` options gives parent 1.0.2, core 5.0.2 and the 
unchanged bundles at their released versions, with the dependency on core 
rewritten to 5.0.2. I could not run a real `release:perform`.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to