Skip to content

Commit

Permalink
Force Java 11 for the jbang script using sdkman
Browse files Browse the repository at this point in the history
This must be cleaned up in the future
  • Loading branch information
jponge committed Dec 16, 2020
1 parent f0ac91d commit c5e99a5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .build/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ elif [[ ${TARGET} == "release" ]]; then
compatibility_extract
.build/post-release.kts "${GITHUB_TOKEN}"

# WE CAN DO BETTER THAN THIS
# The jbang script uses Java 11 APIs while the build is on Java 8
sdk install java 11.0.9.hs-adpt
sdk use java 11.0.9.hs-adpt
compatibility_clear
else
echo "Unknown environment: ${TARGET}"
Expand Down

0 comments on commit c5e99a5

Please sign in to comment.