Skip to content

Commit

Permalink
Make it Jitpack-friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
bsideup committed Aug 31, 2019
1 parent f05173b commit 4e2707a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 6 additions & 4 deletions example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ compileTestJava {
}

test {
def java8home = System.getenv("JAVA_HOME_8")
if (!java8home) {
throw new IllegalStateException("JAVA_HOME_8 must be set")
doFirst {
def java8home = System.getenv("JAVA_HOME_8")
if (!java8home) {
throw new IllegalStateException("JAVA_HOME_8 must be set")
}
executable = "$java8home/bin/java"
}
executable = "$java8home/bin/java"
}

dependencies {
Expand Down
2 changes: 2 additions & 0 deletions jitpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
jdk:
- openjdk12

0 comments on commit 4e2707a

Please sign in to comment.