Skip to content

Commit

Permalink
check java 11 is used during release
Browse files Browse the repository at this point in the history
  • Loading branch information
robstoll committed Apr 3, 2024
1 parent 5a1b631 commit 554bc9b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ sourceOnce "$scriptsDir/before-pr.sh"
sourceOnce "$scriptsDir/prepare-next-dev-cycle.sh"

function release() {
if ! java --version | grep 11; then
logError "Please switch to Java 11, current version in use:"
>&2 java --version
exit 1;
fi

source "$dir_of_tegonal_scripts/releasing/common-constants.source.sh" || die "could not source common-constants.source.sh"

local version
Expand Down

0 comments on commit 554bc9b

Please sign in to comment.