Skip to content

Commit d5b2cc3

Browse files
committed
Temporarily revert to old single class output directory
Causes problems with Groovy classes together with gradle-intellij-plugin because it was built for a single class output directory. Revert to the old behaviour until it is updated.
1 parent a79a451 commit d5b2cc3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,12 @@ java.sourceSets[SourceSet.MAIN_SOURCE_SET_NAME].java.srcDir(generate)
251251
// Workaround for KT-16764
252252
compileKotlin.inputs.dir(generate)
253253

254+
// Workaround problems caused by separate output directories for classes in Gradle 4.0
255+
// gradle-intellij-plugin needs to be updated to support them properly
256+
java.sourceSets.all {
257+
output.classesDir = File(buildDir, "classes/$name")
258+
}
259+
254260
runIde {
255261
maxHeapSize = "2G"
256262

0 commit comments

Comments
 (0)