Using Eclipse Java Compiler with Gradle Tooling API

Hi, I am using the Tooling API to create and build a gradle project. I need to use the JDT compiler instead of the JDK but I am not sure how to specify that in my build. I think it is possible using but if it is not, is there any other way?