Skip to content

Commit

Permalink
update jitpack script to use JDK 20
Browse files Browse the repository at this point in the history
  • Loading branch information
danurahadi committed Aug 23, 2023
1 parent d688018 commit 8a88474
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ensure-java-19 → ensure-java-20
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if [ "$JV" != 19 ]; then
echo "Installing sdkman..."
curl -s "https://get.sdkman.io" | bash
source ~/.sdkman/bin/sdkman-init.sh
sdk install java 19.0.1-zulu
sdk install java 20.0.2-zulu
;;
use)
echo "must source ~/.sdkman/bin/sdkman-init.sh"
Expand Down
4 changes: 2 additions & 2 deletions jitpack.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#jdk:
# - openjdk17
before_install:
- ./ensure-java-19 install
- if ! ./ensure-java-19 use; then source ~/.sdkman/bin/sdkman-init.sh; fi
- ./ensure-java-20 install
- if ! ./ensure-java-20 use; then source ~/.sdkman/bin/sdkman-init.sh; fi
install:
- java -version
- ./gradlew clean compile test detekt localPublish

0 comments on commit 8a88474

Please sign in to comment.