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 }