Skip to content

Commit

Permalink
fix issue #203
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanenicolas committed Aug 23, 2017
1 parent 5bf0514 commit 42629f2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions toothpick-compiler/build.gradle
@@ -1,3 +1,5 @@
import org.gradle.internal.jvm.Jvm

apply plugin: 'java'

sourceCompatibility = 1.7
Expand All @@ -11,8 +13,7 @@ dependencies {
testCompile deps.junit
testCompile deps.truth
testCompile deps.compiletesting
//from https://github.com/google/compile-testing/issues/28
testCompile files(System.getenv("JAVA_HOME") + "/lib/tools.jar")
testCompile files(Jvm.current().getToolsJar())
}

apply from: rootProject.file('gradle/gradle-mvn-push.gradle')
4 changes: 3 additions & 1 deletion toothpick-runtime/build.gradle
@@ -1,3 +1,5 @@
import org.gradle.internal.jvm.Jvm

apply plugin: 'java'

sourceCompatibility = 1.7
Expand All @@ -12,7 +14,7 @@ dependencies {
testCompile deps.easymock
testCompile deps.powermock
testCompile deps.hamcrest
testCompile files(System.getenv("JAVA_HOME") + "/lib/tools.jar")
testCompile files(Jvm.current().getToolsJar())
}

compileTestJava {
Expand Down

0 comments on commit 42629f2

Please sign in to comment.