Skip to content

Commit d4bddd3

Browse files
senivamlukasj
authored andcommitted
Release process update to Sonatype publishing
Signed-off-by: Maxim Nesen <[email protected]>
1 parent 1a28efd commit d4bddd3

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

etc/jenkins/release.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash -ex
22
#
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.
44
#
55
# This program and the accompanying materials are made available under the
66
# terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -37,7 +37,7 @@ if [ ${DRY_RUN} = 'true' ]; then
3737
MVN_DEPLOY_ARGS='install'
3838
echo '-[ Skipping GitHub branch and tag checks ]--------------------------------------'
3939
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'
4141
GIT_ORIGIN=`git remote`
4242
echo '-[ Prepare branch ]-------------------------------------------------------------'
4343
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')
7979
echo '-[ API release version ]--------------------------------------------------------'
8080
set_version 'API' "${API_DIR}" "${API_RELEASE_VERSION}" "${API_GROUP_ID}" "${API_ARTIFACT_ID}" ''
8181

82-
drop_artifacts "${API_STAGING_KEY}" "${API_DIR}"
83-
8482
echo '-[ Deploy artifacts to staging repository ]-----------------------------'
8583
# Verify, sign and deploy release
8684
(cd ${API_DIR} && \
8785
mvn -U -C -B -V \
8886
-Poss-release,staging -DskipTests \
89-
-DstagingDescription="${API_STAGING_DESC}" \
9087
clean ${MVN_DEPLOY_ARGS})
9188

9289
echo '-[ Tag release ]----------------------------------------------------------------'

0 commit comments

Comments
 (0)