From a4704afcad42d9faca37e77fda68ae3e316fc7d1 Mon Sep 17 00:00:00 2001 From: Sokwhan Huh Date: Wed, 6 Aug 2025 00:34:12 +0000 Subject: [PATCH] Migrate to central publisher portal --- publish/cel_version.bzl | 2 +- publish/publish.sh | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/publish/cel_version.bzl b/publish/cel_version.bzl index 996cea72d..0e31f6d9e 100644 --- a/publish/cel_version.bzl +++ b/publish/cel_version.bzl @@ -12,4 +12,4 @@ # See the License for the specific language governing permissions and # limitations under the License. """Maven artifact version for CEL.""" -CEL_VERSION = "0.10.1" +CEL_VERSION = "0.10.1-TEST-SNAPSHOT" diff --git a/publish/publish.sh b/publish/publish.sh index 888bf894e..29bc9294c 100755 --- a/publish/publish.sh +++ b/publish/publish.sh @@ -25,7 +25,8 @@ # 2. You will need to enter the key's password. The prompt appears in GUI, not in terminal. The publish operation will eventually timeout if the password is not entered. -ALL_TARGETS=("//publish:cel.publish" "//publish:cel_compiler.publish" "//publish:cel_runtime.publish" "//publish:cel_v1alpha1.publish" "//publish:cel_protobuf.publish" "//publish:cel_runtime_android.publish") +ALL_TARGETS=("//publish:cel_runtime.publish") +# ALL_TARGETS=("//publish:cel.publish" "//publish:cel_compiler.publish" "//publish:cel_runtime.publish" "//publish:cel_v1alpha1.publish" "//publish:cel_protobuf.publish" "//publish:cel_runtime_android.publish") JDK8_FLAGS="--java_language_version=8 --java_runtime_version=8" function publish_maven_remote() { @@ -58,7 +59,7 @@ if [ "$flag" == "--snapshot" ] || [ "$flag" == "-s" ]; then exit 1; fi echo "Publishing a SNAPSHOT version: $version to remote Maven repository" - publish_maven_remote "https://s01.oss.sonatype.org/content/repositories/snapshots/" + publish_maven_remote "https://central.sonatype.com/repository/maven-snapshots/" elif [ "$flag" == "--release" ] || [ "$flag" == "-r" ]; then if [[ $version == *"-SNAPSHOT"* ]]; then echo "Unable to publish. Please remove -SNAPSHOT suffix from CEL Version" @@ -69,7 +70,7 @@ elif [ "$flag" == "--release" ] || [ "$flag" == "-r" ]; then read -p "Proceed (Y/N)? " yn case $yn in [Yy]* ) - publish_maven_remote "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/" + publish_maven_remote "https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/" break;; [Nn]* ) exit;; * ) echo "Please answer yes or no.";;