From 5a107bcb768fa1e7fb110ba65e22e49b3b004eed Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Tue, 2 Jul 2019 23:22:11 -0700 Subject: Convert install task to kotlin using delegation --- buildSrc/build.gradle.kts | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'buildSrc/build.gradle.kts') diff --git a/buildSrc/build.gradle.kts b/buildSrc/build.gradle.kts index aded2979..efb7a7dd 100644 --- a/buildSrc/build.gradle.kts +++ b/buildSrc/build.gradle.kts @@ -2,8 +2,8 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { `kotlin-dsl` - groovy - idea +// groovy +// idea } group = "com.pitchedapps" @@ -26,22 +26,22 @@ val kau = rootProps.useLines { println("Using kau $kau") -sourceSets { - main { - withConvention(GroovySourceSet::class) { - groovy.srcDir("src/main/groovy") - } - } -} +//sourceSets { +// main { +// withConvention(GroovySourceSet::class) { +// groovy.srcDir("src/main/groovy") +// } +// } +//} dependencies { implementation("ca.allanwang.kau:gradle-plugin:$kau") implementation("com.moowork.gradle:gradle-node-plugin:1.3.1") } -val compileGroovy = tasks.withType().first() -val compileKotlin = tasks.withType().first() - -compileGroovy.dependsOn.remove(compileKotlin) -compileKotlin.dependsOn(compileGroovy) -compileKotlin.classpath += files(compileGroovy.destinationDir) +//val compileGroovy = tasks.withType().first() +//val compileKotlin = tasks.withType().first() +// +//compileGroovy.dependsOn.remove(compileKotlin) +//compileKotlin.dependsOn(compileGroovy) +//compileKotlin.classpath += files(compileGroovy.destinationDir) -- cgit v1.2.3