Compiling Java6 source using gradle 4.6 - executing ant task


I have problem to run aspectj weaving using gradle 4.6 (runing on jdk9) with sourceCompatibility=1.6.

I need to run ant task iajc using java6 but don’t know how to make it. I used the manual to setup compiling and running tests correctly but can’t realize how to run ant task with java6 too.

Or should I run aspectj compiler directly (without ant) and then I can specify java6 executable?


So the resolution is: I can’t run aspectj using build in ant but using the JavaExec task (which supports specifying executables) … u can see or use my aspectj plugin