Skip to content
This repository was archived by the owner on Oct 16, 2024. It is now read-only.

Commit 008e1d7

Browse files
authored
Merge pull request #413 from inferred/fix.gradle.jdk11.issue
Fix issue when running gradle in JDK 11
2 parents cdb0034 + 9fe6ac9 commit 008e1d7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ dependencies {
4545
compile googleJavaFormat
4646
compile guava
4747
compileOnly autoService
48-
compileOnly files(org.gradle.internal.jvm.Jvm.current().toolsJar)
48+
compileOnly files(jvms["1.8"].toolsJar)
4949
annotationProcessor autoService
5050

5151
testCompile guavaTestlib

gradle/java-compatibility.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ Map<Integer, Jvm> jvms = [:].withDefault { String versionString ->
3030
return javaInfo
3131
}
3232
jvms[(JavaVersion.current().name)] = Jvm.current()
33+
project.ext.jvms = jvms
3334

3435
// Fork the correct JVM version if installed.
3536
// Runs lazily so users lacking some JVMs can still run most tasks.

0 commit comments

Comments
 (0)