Kotlin in existing Java Maven Project breaks AspectJ Weaving


#1

Hi,
We’re trying to integrate Kotlin into a large existing project based on Maven.
The docs say that in order to do this we need to disable the ‘default-compile’ within the maven-compiler plugin to make sure that Kotlin code is compiled before the Java code (Details here).

We did this and it works, however our aspectJ code stopped working! This makes sense I think since AspectJ performs post compile weaving and now that the Java code is compiled at a later stage I guess the Weaving happens too early.

Maybe there’s some intermediate stage we can set for the ‘default-compile’ or something instead of just ‘none’ ?

Many thanks
Aharon