masc3d
12/08/2017, 1:45 PMkotlin.copyClassesToJavaOutput = true
and it works well in our setup, but it causes tests to run twice when using the gradle test runnerh0tk3y
12/08/2017, 3:47 PMclassesDir
for the main and test source sets:
sourceSets.main.classesDir = "..."
This will make Gradle think there's only one classes directory and disregard the separate Kotlin one.masc3d
12/11/2017, 10:46 AMsourceSets.main.kotlin.outputDir = classesDir
sourceSets.test.kotlin.outputDir = testClassesDir
(which doesn’t work)masc3d
12/11/2017, 10:46 AMsourceSets.main.output.classesDir = classesDir
sourceSets.test.output.classesDir = testClassesDir
masc3d
12/11/2017, 10:47 AMGradle now uses separate output directories for each JVM language, but this build assumes a single directory for all classes from a source set. This behaviour has been deprecated and is scheduled to be removed in Gradle 5.0
masc3d
12/11/2017, 10:53 AMsourceSets.main.output.classesDirs.setFrom(classesDir)
sourceSets.test.output.classesDirs.setFrom(testClassesDir)
instead