How use post-compile with test-scope in gradle.kts? #760
Unanswered
S-Kerrigan
asked this question in
Q&A
Replies: 1 comment
-
After some time i got the solution for AspectJ Load-Time Weaving in case "build.gradle.kts", maybe it save time of anyone in future
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Why me need this? In shortly - in our team requaired advanced test-runner with complex logic
After long-times i cannot find example or manual how configure aspectj.post-compile-weaving on .kts dsl (only for groovy)
I created public-MCVE (https://github.com/S-Kerrigan/research_aspectj_example) with some cases:
My test-aspect
This working correct
However in case "use main-method in test-scope" no applyed aspectj
This log - text from annotation in ForSimpleCheckInTestScope no print, aspectj.post-compile-weaving no used for annotation in test-scope
So, please, anyone can show me, how configure aspectj in .kts right?
P.S. similar question https://stackoverflow.com/questions/75091079/post-compile-weaving-not-working-to-test-code, but this for groovy
Beta Was this translation helpful? Give feedback.
All reactions