Skip to content

Commit

Permalink
Use the toolchain to avoid JDK conflicts with Kotlin
Browse files Browse the repository at this point in the history
  • Loading branch information
lfoppiano committed Feb 26, 2024
1 parent 9d23f3b commit 53f1147
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
14 changes: 7 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ tasks.withType(JavaCompile).configureEach {
// options.compilerArgs << "-Xlint:unchecked"
}

compileKotlin {
kotlinOptions {
jvmTarget = "17"
}

kotlin {
jvmToolchain(17)
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "17"

java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ class DefaultQuantifiedObjectParserTest {

@Test
fun testAddTokenIndex() {
val result: List<String> = ArrayList()

val tree = """1 However however RB _ 12 advmod 12:AM-DIS
2 , , , _ 12 punct _
3 upon upon IN _ 12 prep 12:AM-TMP
Expand Down

0 comments on commit 53f1147

Please sign in to comment.