Skip to content

build: move release-only plugins to release profile#21

Merged
marevol merged 1 commit into
masterfrom
build/release-profile-standardization
Jun 11, 2026
Merged

build: move release-only plugins to release profile#21
marevol merged 1 commit into
masterfrom
build/release-profile-standardization

Conversation

@marevol

@marevol marevol commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Summary

Standardize the release configuration following the maven-release-plugin 2→3 migration guide (https://maven.apache.org/maven-release/maven-release-plugin/migrate.html): release-only plugins now live in the release profile, which maven-release-plugin activates automatically during release:perform.

Changes Made

  • Moved maven-source-plugin (attach-sources) and maven-javadoc-plugin (attach-javadocs) from the main build into the existing release profile, alongside maven-gpg-plugin
  • Added maven-release-plugin 3.1.1 with <releaseProfiles>release</releaseProfiles>

Testing

  • mvn package -DskipTests — no sources/javadoc jars produced, no GPG required for local builds
  • mvn package -P release -DskipTests -Dgpg.skip=true — sources and javadoc jars are produced

Additional Notes

  • Plain mvn install no longer attaches sources/javadoc jars locally; they are generated only during releases.
  • Same pattern as codelibs/fesen-httpclient; applied across CodeLibs repositories for consistency.

@marevol marevol merged commit ae899ef into master Jun 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant