Skip to content

Commit

Permalink
Eliminate references to Java target "1.6"
Browse files Browse the repository at this point in the history
Also for "client/rpc" explicitly specify "jvmTarget" (similar to what "experimental/behave" does) to avoid ambiguity.

Without this change the following compilation error been observed in IntelliJ:
Z:\corda\experimental\behave\src\main\kotlin\net\corda\behave\node\Node.kt
Error:(163, 44) Kotlin: Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6. Please specify proper '-jvm-target' option
  • Loading branch information
vkolomeyko committed Feb 20, 2018
1 parent 979aef1 commit 18f81ba
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions client/rpc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ configurations {
smokeTestRuntime.extendsFrom runtime
}

compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}

compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}

sourceSets {
integrationTest {
kotlin {
Expand Down

0 comments on commit 18f81ba

Please sign in to comment.