Skip to content

Commit

Permalink
Make Kotlin emit Java 8 bytecode and parameter reflection data
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Hearn committed Apr 19, 2017
1 parent 0d90082 commit 7542d35
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ ext {
corda_revision = org.ajoberstar.grgit.Grgit.open(file('.')).head().id
}

apply plugin: 'kotlin'
apply plugin: 'project-report'
apply plugin: 'com.github.ben-manes.versions'
apply plugin: 'net.corda.plugins.publish-utils'
Expand All @@ -83,6 +82,7 @@ targetCompatibility = 1.8


allprojects {
apply plugin: 'kotlin'
apply plugin: 'java'
apply plugin: 'jacoco'

Expand All @@ -93,6 +93,15 @@ allprojects {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation" << "-Xlint:-options"
}

tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
languageVersion = "1.1"
apiVersion = "1.1"
jvmTarget = "1.8"
javaParameters = true // Useful for reflection.
}
}

group 'net.corda'
version "$corda_version"

Expand Down

0 comments on commit 7542d35

Please sign in to comment.