Skip to content

Commit 033b3f5

Browse files
committed
Add JReleaser execution branch (for maven projects)
Signed-off-by: marko-bekhta <[email protected]>
1 parent 7e91caa commit 033b3f5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

deploy.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ else
3333

3434
source "$SCRIPTS_DIR/mvn-setup.sh"
3535

36+
# if there's no JReleaser file available the deploy command will use the nexus-staging plugin and deploy to nexus itself.
37+
# otherwise the deploy plugin pushes the artifacts to a local directory that jreleaser will work with:
3638
./mvnw clean deploy \
3739
-Pdocbook,documentation-pdf,dist,perf,relocation,release \
3840
-DperformRelease=true \
@@ -43,6 +45,13 @@ else
4345
-Dgradle.cache.remote.enabled=false -Dgradle.cache.local.enabled=false \
4446
-Ddevelocity.cache.remote.enabled=false -Ddevelocity.cache.local.enabled=false \
4547
$ADDITIONAL_OPTIONS
48+
49+
if [ -f "./jreleaser.yml" ]; then
50+
# JReleaser-based build
51+
export JRELEASER_GPG_HOMEDIR="$RELEASE_GPG_HOMEDIR"
52+
curl https://jreleaser.org/setup.sh -sSfL | sh
53+
jreleaser full-release -Djreleaser.project.version="$RELEASE_VERSION"
54+
fi
4655
fi
4756

4857
popd

0 commit comments

Comments
 (0)