Skip to content

Commit

Permalink
change Jitpack deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
danurahadi committed Sep 3, 2021
1 parent f47c358 commit 0799420
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions ensure-java-15 → ensure-java-11
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
JV=`java -version 2>&1 >/dev/null | head -1`
echo $JV | sed -E 's/^.*version "([^".]*)\.[^"]*".*$/\1/'

if [ "$JV" != 15 ]; then
if [ "$JV" != 11 ]; then
case "$1" in
install)
echo "Installing sdkman..."
curl -s "https://get.sdkman.io" | bash
source ~/.sdkman/bin/sdkman-init.sh
sdk install java 15.0.2-zulu
sdk install java 11.0.11-zulu
;;
use)
echo "must source ~/.sdkman/bin/sdkman-init.sh"
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Set the project version
version=0.4.4
version=0.4.5

# Set the JVM heap size
org.gradle.jvmargs=-Xms1g -Xmx2g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -Dkotlin.daemon.jvm.options=-Xmx1G
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:
# - openjdk9
before_install:
- ./ensure-java-15 install
- if ! ./ensure-java-15 use; then source ~/.sdkman/bin/sdkman-init.sh; fi
- ./ensure-java-11 install
- if ! ./ensure-java-11 use; then source ~/.sdkman/bin/sdkman-init.sh; fi
install:
- java -version
- ./gradlew clean compile test detekt localPublish

0 comments on commit 0799420

Please sign in to comment.