Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aspectj-plugin:2.9.5 inpath config #875

Open
Cryln opened this issue Aug 30, 2023 · 2 comments
Open

aspectj-plugin:2.9.5 inpath config #875

Cryln opened this issue Aug 30, 2023 · 2 comments

Comments

@Cryln
Copy link

Cryln commented Aug 30, 2023

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?

@larsgrefer
Copy link
Member

in version 2.9.5, it is impossible to set the inpath for the io.freefair.aspectj.post-compile-weaving plugin.

Why are you using such an old version?

@Cryln
Copy link
Author

Cryln commented Sep 4, 2023

Cuz our project is based in JDK8 & Gradle 4.8, plugin-2.9.5 is the only version suitable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants