@@ -19,7 +19,7 @@ readonly SCRIPT_NAME=$(basename "$0")
19
19
readonly MAVEN_PROJECTS=" parent main shaded unshaded externs"
20
20
21
21
deploy_to_sonatype=true
22
- sonatype_auto_release =false
22
+ sonatype_auto_publish =false
23
23
bazel_executable=" "
24
24
bazel_bin=$( pwd) /bazel-bin
25
25
bazel_define_flag=" "
@@ -28,12 +28,12 @@ usage() {
28
28
echo " "
29
29
echo " ${SCRIPT_NAME} : Build and release script for Closure Compiler."
30
30
echo " "
31
- echo " Usage: ${SCRIPT_NAME} [--no-deploy] [--sonatype-auto-release ] [--help]"
31
+ echo " Usage: ${SCRIPT_NAME} [--no-deploy] [--sonatype-auto-publish ] [--help]"
32
32
echo " "
33
33
echo " Options:"
34
34
echo " --help Print this help output and exit."
35
35
echo " --no-deploy Prepare all the maven artifacts but skip the deployment to Sonatype."
36
- echo " --sonatype-auto-release Automatically release the staging repository on Sonatype after deployment."
36
+ echo " --sonatype-auto-publish Automatically publish the staging repository to Sonatype after deployment."
37
37
echo " "
38
38
echo " Use the environment variable RELEASE_NUM to specify the release number:"
39
39
echo " RELEASE_NUM=v1234567890 ./${SCRIPT_NAME} "
@@ -46,8 +46,8 @@ parse_arguments() {
46
46
deploy_to_sonatype=false
47
47
shift
48
48
;;
49
- --sonatype-auto-release )
50
- sonatype_auto_release =true
49
+ --sonatype-auto-publish )
50
+ sonatype_auto_publish =true
51
51
shift
52
52
;;
53
53
--help)
@@ -131,7 +131,7 @@ package_and_deploy() {
131
131
132
132
if [[ " ${deploy_to_sonatype} " == true ]]; then
133
133
echo " Deploying Maven artifacts to Sonatype..."
134
- mvn -f closure-compiler-parent.pom.xml deploy " -DautoReleaseAfterClose =${sonatype_auto_release } "
134
+ mvn -f closure-compiler-parent.pom.xml deploy " -DautoPublish =${sonatype_auto_publish } "
135
135
rm -rf " ${mvn_temp_wd} "
136
136
else
137
137
echo " Packaging Maven artifacts..."
0 commit comments