https://kotlinlang.org logo
#gradle
Title
# gradle
j

jlleitschuh

02/24/2017, 10:27 PM
Would re-writing this whole blob in groovy and applying in into my kotlin build file solve the problem?
Copy code
(tasks["compileJava"] as JavaCompile).apply {
    val preWeaveClassDir = file("$buildDir/classes/mainPreWeave")
    destinationDir = preWeaveClassDir
    doLast {
        if (didWork) {
            aspectj.call(
                mainSourceSet.output.classesDir.absolutePath,
                aspectsConfiguration.asPath,
                preWeaveClassDir.absolutePath,
                mainSourceSet.runtimeClasspath.asPath)
        }
    }
}