Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Commit

Permalink
Specify release-sign-artifacts profile in release.sh
Browse files Browse the repository at this point in the history
The artifacts are only signed when the `release-sign-artifacts`
profile is activated, which is normally done by the maven-release-plugin
for the release:perform task. That's not happening for some reason, so
as a workaround, we're now explicitly setting the profile when using the
release script. We're soon switching to Gradle, so no further effort will
be put in to fix this in Maven configs.

This patch also allows passing mvn arguments to release.sh, which is
useful for setting -DdryRun=true.
  • Loading branch information
tony19 committed Jun 10, 2016
1 parent 39cd5a5 commit f565605
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion release.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh -e

# Deploy release builds to Sonatype (and not the staging repo)
mvn -Prelease release:clean release:prepare release:perform
mvn $1 -Prelease -Prelease-sign-artifacts release:clean release:prepare release:perform


# To redeploy without touching git (tags, commits, etc), run:
Expand Down

0 comments on commit f565605

Please sign in to comment.