aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorEric Chang <erichang@google.com>2021-04-23 11:44:43 -0700
committerDagger Team <dagger-dev+copybara@google.com>2021-04-23 11:46:03 -0700
commitf90a69f4065f05a18fc6ea8fcefe13eba310662d (patch)
treef061b5dec0c0d775f888bd17773eee9f4cef87b6 /util
parent61ef9d879450e39e55e5338212c34e2190665ee8 (diff)
downloaddagger2-f90a69f4065f05a18fc6ea8fcefe13eba310662d.tar.gz
Fix some remaining references to beta
RELNOTES=n/a PiperOrigin-RevId: 370124486
Diffstat (limited to 'util')
-rwxr-xr-xutil/deploy-to-maven-central.sh25
1 files changed, 10 insertions, 15 deletions
diff --git a/util/deploy-to-maven-central.sh b/util/deploy-to-maven-central.sh
index 3633f0b8d..1a71f5fed 100755
--- a/util/deploy-to-maven-central.sh
+++ b/util/deploy-to-maven-central.sh
@@ -22,20 +22,6 @@ fi
bash $(dirname $0)/run-local-tests.sh
-# Note: we detach from head before making any sed changes to avoid commiting
-# a particular version to master. This sed change used to be done at the very
-# end of the script, but with the introduction of "-beta" to the Hilt
-# artifacts, we need to do the sed replacement before deploying the artifacts to
-# maven. Note, that this sed replacement is only done for versioned releases.
-# HEAD-SNAPSHOT and LOCAL_SNAPSHOT versions of Hilt artifacts do not contain
-# "-beta".
-git checkout --detach
-
-# Set the version string that is used as a tag in all of our libraries. If
-# another repo depends on a versioned tag of Dagger, their java_library.tags
-# should match the versioned release.
-sed -i s/'${project.version}'/"${VERSION_NAME}"/g build_defs.bzl
-
bash $(dirname $0)/deploy-dagger.sh \
"gpg:sign-and-deploy-file" \
"$VERSION_NAME" \
@@ -45,11 +31,20 @@ bash $(dirname $0)/deploy-dagger.sh \
bash $(dirname $0)/deploy-hilt.sh \
"gpg:sign-and-deploy-file" \
- "${VERSION_NAME}-beta" \
+ "$VERSION_NAME" \
"-DrepositoryId=sonatype-nexus-staging" \
"-Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/" \
"-Dgpg.keyname=${KEY}"
+# Note: we detach from head before making any sed changes to avoid commiting
+# a particular version to master.
+git checkout --detach
+
+# Set the version string that is used as a tag in all of our libraries. If
+# another repo depends on a versioned tag of Dagger, their java_library.tags
+# should match the versioned release.
+sed -i s/'${project.version}'/"${VERSION_NAME}"/g build_defs.bzl
+
# Note: We avoid commiting until after deploying in case deploying fails and
# we need to run the script again.
git commit -m "${VERSION_NAME} release" build_defs.bzl