|
1 | 1 | #!/bin/bash -ex |
2 | 2 | # |
3 | | -# Copyright (c) 2019, 2022 Oracle and/or its affiliates. All rights reserved. |
| 3 | +# Copyright (c) 2019, 2025 Oracle and/or its affiliates. All rights reserved. |
4 | 4 | # |
5 | 5 | # This program and the accompanying materials are made available under the |
6 | 6 | # terms of the Eclipse Distribution License v. 1.0, which is available at |
@@ -37,7 +37,7 @@ if [ ${DRY_RUN} = 'true' ]; then |
37 | 37 | MVN_DEPLOY_ARGS='install' |
38 | 38 | echo '-[ Skipping GitHub branch and tag checks ]--------------------------------------' |
39 | 39 | else |
40 | | - MVN_DEPLOY_ARGS='deploy' |
| 40 | + MVN_DEPLOY_ARGS='install javadoc:jar gpg:sign org.sonatype.central:central-publishing-maven-plugin:0.8.0:publish' |
41 | 41 | GIT_ORIGIN=`git remote` |
42 | 42 | echo '-[ Prepare branch ]-------------------------------------------------------------' |
43 | 43 | if [[ -n `git branch -r | grep "${GIT_ORIGIN}/${RELEASE_BRANCH}"` ]]; then |
@@ -79,14 +79,11 @@ API_STAGING_KEY=$(echo ${API_STAGING_DESC} | sed -e 's/\./\\\./g') |
79 | 79 | echo '-[ API release version ]--------------------------------------------------------' |
80 | 80 | set_version 'API' "${API_DIR}" "${API_RELEASE_VERSION}" "${API_GROUP_ID}" "${API_ARTIFACT_ID}" '' |
81 | 81 |
|
82 | | -drop_artifacts "${API_STAGING_KEY}" "${API_DIR}" |
83 | | - |
84 | 82 | echo '-[ Deploy artifacts to staging repository ]-----------------------------' |
85 | 83 | # Verify, sign and deploy release |
86 | 84 | (cd ${API_DIR} && \ |
87 | 85 | mvn -U -C -B -V \ |
88 | 86 | -Poss-release,staging -DskipTests \ |
89 | | - -DstagingDescription="${API_STAGING_DESC}" \ |
90 | 87 | clean ${MVN_DEPLOY_ARGS}) |
91 | 88 |
|
92 | 89 | echo '-[ Tag release ]----------------------------------------------------------------' |
|
0 commit comments