Would re-writing this whole blob in groovy and app...
# gradle
j
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)
        }
    }
}