Skip to content

Commit

Permalink
Merge pull request #19964 from gsmet/kotlin-jvm-target
Browse files Browse the repository at this point in the history
Fixes related to Kotlin JVM target
  • Loading branch information
gsmet authored Sep 7, 2021
2 parents 2602229 + 2c22772 commit a7f37cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,10 @@ allOpen {
}

compileKotlin {
{#if java.version == "11"}
kotlinOptions.jvmTarget = JavaVersion.VERSION_11
{#else}
kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8
{/if}
kotlinOptions.javaParameters = true
}

compileTestKotlin {
{#if java.version == "11"}
kotlinOptions.jvmTarget = JavaVersion.VERSION_11
{#else}
kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8
{/if}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
</executions>
<configuration>
<javaParameters>true</javaParameters>
<jvmTarget>1.8</jvmTarget>
<jvmTarget>11</jvmTarget>
<!-- Soon to be replaced by plugin that will pre-configure all necessary annotations -->
<compilerPlugins>
<plugin>all-open</plugin>
Expand All @@ -64,4 +64,4 @@
</plugin>
</plugins>
</build>
</project>
</project>

0 comments on commit a7f37cf

Please sign in to comment.