Skip to content

Commit 8b891bc

Browse files
committed
Update Gradle. Fix ambiguous method call on Java 13+
1 parent 2d836a4 commit 8b891bc

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

build.gradle

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ repositories {
77
mavenCentral()
88
}
99

10+
compileJava {
11+
options.release = 11
12+
}
13+
1014
dependencies {
1115
implementation 'com.github.javaparser:javaparser-symbol-solver-core:3.20.2'
1216
implementation 'com.google.code.gson:gson:2.8.6'
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

src/main/java/io/github/bensku/tsbind/cli/BindGenApp.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public Path read(JsonReader in) throws IOException {
7474
if (Files.isDirectory(inputPath)) {
7575
inputDir = inputPath.resolve(args.offset);
7676
} else { // Try to open a zip file
77-
inputDir = FileSystems.newFileSystem(inputPath, null).getPath("/").resolve(args.offset);
77+
inputDir = FileSystems.newFileSystem(inputPath, (ClassLoader) null).getPath("/").resolve(args.offset);
7878
}
7979

8080
// Prepare for AST generation

0 commit comments

Comments
 (0)