Skip to content

Commit cc73f98

Browse files
committed
Switch to publish task for Gradle-based releases
Signed-off-by: marko-bekhta <[email protected]>
1 parent 9185e3c commit cc73f98

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

prepare-release.sh

+8-3
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,19 @@ if [ "$PROJECT" == "orm" ] || [ "$PROJECT" == "reactive" ] || [ "$PROJECT" == "m
6565
RELEASE_VERSION_BASIS=$(echo "$RELEASE_VERSION" | sed -E 's/^([0-9]+\.[0-9]+\.[0-9]+).*/\1/')
6666
RELEASE_VERSION_FAMILY=$(echo "$RELEASE_VERSION" | sed -E 's/^([0-9]+\.[0-9]+).*/\1/')
6767
"$SCRIPTS_DIR/validate-release.sh" $PROJECT $RELEASE_VERSION
68+
69+
EXTRA_ARGS=""
70+
if [ -f "./jreleaser.yml" ]; then
71+
EXTRA_ARGS+=" publish"
72+
fi
73+
6874
# set release version
6975
# update changelog from JIRA
7076
# tags the version
7177
# changes the version to the provided development version
72-
./gradlew clean releasePrepare pTML -x test --no-scan --no-daemon --no-build-cache \
78+
./gradlew clean releasePrepare -x test --no-scan --no-daemon --no-build-cache \
7379
-PreleaseVersion=$RELEASE_VERSION -PdevelopmentVersion=$DEVELOPMENT_VERSION \
74-
-PgitRemote=origin -PgitBranch=$BRANCH \
75-
-Dmaven.repo.local=$(pwd)/build/staging-deploy/maven
80+
-PgitRemote=origin -PgitBranch=$BRANCH $EXTRA_ARGS
7681
else
7782
if [[ "$PROJECT" != "tools" && "$PROJECT" != "hcann" && ! $PROJECT =~ ^infra-.+ ]]; then
7883
# These projects do not have a distribution bundle archive,

0 commit comments

Comments
 (0)