Skip to content

Commit

Permalink
Pin the Maven gpg plugin to 3.1.0
Browse files Browse the repository at this point in the history
When running `mvn gpg:sign-and-deploy-file ...` Maven uses the latest available version which is 3.2.0 (https://github.com/apache/maven-gpg-plugin/releases/tag/maven-gpg-plugin-3.2.0). Using 3.2.0 makes our tests fail, so we tentatively pin to 3.1.0 until we do further investigations.

PiperOrigin-RevId: 614822141
Change-Id: Ia3daf42558289ac7bba4b1d146644a64a804edcc
  • Loading branch information
morambro authored and copybara-github committed Mar 11, 2024
1 parent a15440d commit e97ea04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion maven/maven_deploy_library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,9 @@ parse_args() {
if [[ -z "${GIT_URL}" ]]; then
usage
fi
# TODO(b/329143784): Move to 3.2.0 when possible.
MAVEN_ARGS+=(
"gpg:sign-and-deploy-file"
"org.apache.maven.plugins:maven-gpg-plugin:3.1.0:sign-and-deploy-file"
"-DrepositoryId=ossrh"
"-Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/"
"[email protected]"
Expand Down
3 changes: 2 additions & 1 deletion maven/maven_deploy_library_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ test_MavenDeployLibraryTest_ReleaseSucceeds() {

cat << EOF > expected_commands.txt
bazel build tink.jar tink-src.jar tink-javadoc.jar
mvn gpg:sign-and-deploy-file -DrepositoryId=ossrh \
mvn org.apache.maven.plugins:maven-gpg-plugin:3.1.0:sign-and-deploy-file \
-DrepositoryId=ossrh \
-Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ \
[email protected] \
--settings=${TEST_CASE_TMPDIR}/${RELATIVE_MVN_DIR_PATH}/settings.xml \
Expand Down

0 comments on commit e97ea04

Please sign in to comment.