@@ -27,7 +27,7 @@ plugins {
2727 id(" org.jetbrains.kotlin.jvm" ) version " 1.1.3-2" // kept in sync with IntelliJ's bundled dep
2828 groovy
2929 idea
30- id(" org.jetbrains.intellij" ) version " 0.2.15 "
30+ id(" org.jetbrains.intellij" ) version " 0.2.17 "
3131 id(" net.minecrell.licenser" ) version " 0.3"
3232}
3333
@@ -50,7 +50,7 @@ val processResources: AbstractCopyTask by tasks
5050val test: Test by tasks
5151val runIde: JavaExec by tasks
5252val publishPlugin: PublishTask by tasks
53- val clean: Task by tasks
53+ val clean: Delete by tasks
5454
5555configurations {
5656 " kotlin" ()
@@ -244,15 +244,12 @@ val generate = task("generate") {
244244
245245java.sourceSets[SourceSet .MAIN_SOURCE_SET_NAME ].java.srcDir(generate)
246246
247+ // Remove gen directory on clean
248+ clean.delete(generate)
249+
247250// Workaround for KT-16764
248251compileKotlin.inputs.dir(generate)
249252
250- // Workaround problems caused by separate output directories for classes in Gradle 4.0
251- // gradle-intellij-plugin needs to be updated to support them properly
252- java.sourceSets.all {
253- output.classesDir = File (buildDir, " classes/$name " )
254- }
255-
256253runIde {
257254 maxHeapSize = " 2G"
258255
@@ -264,12 +261,6 @@ runIde {
264261 }
265262}
266263
267- val cleanGen = task<Delete >(" cleanGen" ) {
268- delete = setOf (file(" gen" ))
269- }
270-
271- clean.dependsOn(cleanGen)
272-
273264inline operator fun <T : Task > T.invoke (a : T .() -> Unit ): T = apply (a)
274265fun DependencyHandlerScope.kotlinModule (module : String ) = kotlinModule(module, kotlinVersion) as String
275266fun intellijPlugin (name : String ) = mapOf (
0 commit comments