mirror of
https://github.com/corda/corda.git
synced 2024-12-26 16:11:12 +00:00
25 lines
754 B
Groovy
25 lines
754 B
Groovy
|
apply plugin: 'kotlin'
|
||
|
|
||
|
evaluationDependsOn(':jdk8u-deterministic')
|
||
|
|
||
|
def jdkTask = project(':jdk8u-deterministic').assemble
|
||
|
def deterministic_jdk_home = project(':jdk8u-deterministic').jdk_home
|
||
|
|
||
|
dependencies {
|
||
|
compileOnly project(path: ':core-deterministic', configuration: 'runtimeArtifacts')
|
||
|
compileOnly project(path: ':serialization-deterministic', configuration: 'runtimeArtifacts')
|
||
|
compileOnly "junit:junit:$junit_version"
|
||
|
}
|
||
|
|
||
|
tasks.withType(AbstractCompile) {
|
||
|
dependsOn jdkTask
|
||
|
}
|
||
|
|
||
|
tasks.withType(JavaCompile) {
|
||
|
options.compilerArgs << '-bootclasspath' << "$deterministic_jdk_home/jre/lib/rt.jar".toString()
|
||
|
}
|
||
|
|
||
|
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile) {
|
||
|
kotlinOptions.jdkHome = deterministic_jdk_home
|
||
|
}
|