Skip to content

Commit

Permalink
Push the branch to JReleaser and use a fixed version of JReleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmet committed Feb 2, 2022
1 parent 4600fdc commit 4e74e5b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
11 changes: 11 additions & 0 deletions devtools/cli/distribution/jreleaser.java
Original file line number Diff line number Diff line change
@@ -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);
}
}
12 changes: 10 additions & 2 deletions devtools/cli/distribution/release-cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 4e74e5b

Please sign in to comment.