You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compilation and weaving is done in one step, for about 7000 .java files and about 20 .aj files and also 3 external jar with aspects.
The project is aligned (using gradle 7.1.1, plugin version 6.0.0-m2, and aspectj version 1.8.9).
I've checked the aspectj plugin examples and realized that the example from module 'weaving' is not fitted for us because
in our case the aspects depends on java code, and in the examples the java code module depends on aspects module.
I've tested splitting the unique step and module into 3 steps and modules, as specified below. After doing those changes, the java incremental compiling is working on module-java, as expected, but, the jar output of the last module, module-weaving is not correct.
module-java with only the .java files
module-aspects with only .aj files, and having in the dependencies, implementation project(':module-java')
module-weaving, without sources, not using postcompile plugin, and having in the dependencies:
implementation project(':module-java')
aspect project(':module-aspects')
aspect "external-jar-1"
aspect "external-jar-2"
aspect "external-jar-3"
Thank you !
The text was updated successfully, but these errors were encountered:
adrian-n-balaban
changed the title
AspectJ postcompile weaving example needed for the case when aspects are depending on java code
[Example requested for AspectJ postcompile weaving] for the case when aspects are depending on java code (not found on examples)
Jul 28, 2021
Hello,
After converting from .aj to .java with annotations, and using postcompile plugin, incremental compiling works.
So, no need for the above request.
Thank you !
Hello,
Compilation and weaving is done in one step, for about 7000 .java files and about 20 .aj files and also 3 external jar with aspects.
The project is aligned (using gradle 7.1.1, plugin version 6.0.0-m2, and aspectj version 1.8.9).
I've checked the aspectj plugin examples and realized that the example from module 'weaving' is not fitted for us because
in our case the aspects depends on java code, and in the examples the java code module depends on aspects module.
I've tested splitting the unique step and module into 3 steps and modules, as specified below. After doing those changes, the java incremental compiling is working on module-java, as expected, but, the jar output of the last module, module-weaving is not correct.
implementation project(':module-java')
aspect project(':module-aspects')
aspect "external-jar-1"
aspect "external-jar-2"
aspect "external-jar-3"
Thank you !
The text was updated successfully, but these errors were encountered: