From 4e74e5be3a3106b0df4d3e543d0518ad9202c610 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Wed, 2 Feb 2022 18:39:18 +0100 Subject: [PATCH] Push the branch to JReleaser and use a fixed version of JReleaser --- devtools/cli/distribution/jreleaser.java | 11 +++++++++++ devtools/cli/distribution/release-cli.sh | 12 ++++++++++-- 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 devtools/cli/distribution/jreleaser.java diff --git a/devtools/cli/distribution/jreleaser.java b/devtools/cli/distribution/jreleaser.java new file mode 100644 index 00000000000000..46b6ee11f3a731 --- /dev/null +++ b/devtools/cli/distribution/jreleaser.java @@ -0,0 +1,11 @@ +//usr/bin/env jbang "$0" "$@" ; exit $? +//JAVA 8+ +//DEPS org.jreleaser:jreleaser:1.0.0-M1 + +// We keep this here to enforce the version and make sure we use a consistent one. + +public class jreleaser { + public static void main(String... args) throws Exception { + org.jreleaser.cli.Main.main(args); + } +} diff --git a/devtools/cli/distribution/release-cli.sh b/devtools/cli/distribution/release-cli.sh index 9b3eef51298799..12b9922dd277c7 100755 --- a/devtools/cli/distribution/release-cli.sh +++ b/devtools/cli/distribution/release-cli.sh @@ -6,6 +6,13 @@ then exit 1 fi +BRANCH=$2 +if [ -z "$BRANCH" ] +then + echo "Must specify Quarkus branch" + exit 1 +fi + DIST_DIR="$( dirname "${BASH_SOURCE[0]}" )" pushd ${DIST_DIR} @@ -35,9 +42,10 @@ tar -zcf ${JAVA_BINARY_DIR}.tar.gz ${JAVA_BINARY_DIR} popd export JRELEASER_PROJECT_VERSION=${VERSION} -export JRELEASER_BRANCH=main +export JRELEASER_BRANCH=${BRANCH} +export JRELEASER_CHOCOLATEY_GITHUB_BRANCH=${BRANCH} -jbang jreleaser@jreleaser full-release \ +jbang jreleaser.java full-release \ --git-root-search \ -od target