mirror of
https://github.com/corda/corda.git
synced 2025-02-11 13:16:10 +00:00
Make Kotlin emit Java 8 bytecode and parameter reflection data
This commit is contained in:
parent
0d90082482
commit
7542d355a9
11
build.gradle
11
build.gradle
@ -66,7 +66,6 @@ ext {
|
|||||||
corda_revision = org.ajoberstar.grgit.Grgit.open(file('.')).head().id
|
corda_revision = org.ajoberstar.grgit.Grgit.open(file('.')).head().id
|
||||||
}
|
}
|
||||||
|
|
||||||
apply plugin: 'kotlin'
|
|
||||||
apply plugin: 'project-report'
|
apply plugin: 'project-report'
|
||||||
apply plugin: 'com.github.ben-manes.versions'
|
apply plugin: 'com.github.ben-manes.versions'
|
||||||
apply plugin: 'net.corda.plugins.publish-utils'
|
apply plugin: 'net.corda.plugins.publish-utils'
|
||||||
@ -83,6 +82,7 @@ targetCompatibility = 1.8
|
|||||||
|
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
|
apply plugin: 'kotlin'
|
||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
apply plugin: 'jacoco'
|
apply plugin: 'jacoco'
|
||||||
|
|
||||||
@ -93,6 +93,15 @@ allprojects {
|
|||||||
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation" << "-Xlint:-options"
|
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'
|
group 'net.corda'
|
||||||
version "$corda_version"
|
version "$corda_version"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user