gradle-plugins icon indicating copy to clipboard operation
gradle-plugins copied to clipboard

aspectj-plugin:2.9.5 inpath config

Open Cryln opened this issue 1 year ago • 2 comments

JDK 8, Gradle 4.8, aspectj-plugin 2.9.5

I need to enhance a third-party tool, but this version seems cannot specify arbitrary inpath, so I used an unconventional method to enhance.

task copyClass(type: Copy) {
    from { zipTree(configurations.enhance.files.first())}
    include ("com/dianping/cat/message/internal/Default*.class")
    into 'build/classes/java/main'
}
compileJava.dependsOn copyClass

but this is hard to explain it in Code-Review. is there a better way?

Cryln avatar Aug 30 '23 08:08 Cryln