You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor sonatype deployment script to use maven for packaging and deployment.
This cl introduces/configures differents maven plugins to achieve its goal:
- maven-jar-plugin: to build the jar file from classes present on the file system instead of using file classes coming from the maven compile step.
- build-helper-maven-plugin: to attach source and javadoc jars as maven artifacts.
- maven-gpg-plugin: to sign all the maven artifacts before deployment
- nexus-staging-maven-plugin: to deploy the artifacts to sonatype. Note that plugin is still configured to deploy to the legacy OSSRH sonatype repo. Change needed to deploy to central,sonatype will be provided in a follow-up cl.
The plugin configuration will be shared between projects.
This cl also:
- simplify bazel build by automatically constructing file paths and bazel targets,
- add `sonatype-auto-release` option to automatically release the artifacts after deployment allowing using the script in a CI context.
PiperOrigin-RevId: 780912766
<!-- We need at least 3.5.1 to avoid https://github.com/codehaus-plexus/plexus-io/issues/109. Once we upgrade maven-jar-plugin itself to a version new enough to depend on 3.5.1 or higher, we can remove this override. -->
0 commit comments