Make Kotlin emit Java 8 bytecode and parameter reflection data

This commit is contained in:
Mike Hearn 2017-04-19 16:39:53 +02:00
parent 0d90082482
commit 7542d355a9

View File

@ -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'
@ -83,6 +82,7 @@ targetCompatibility = 1.8
allprojects {
apply plugin: 'kotlin'
apply plugin: 'java'
apply plugin: 'jacoco'
@ -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"