IBM Java 6 and newer gradleversions


(Hugo Groeneveld) #1

Is there a way to get IBM Java6 projects running with the latest Gradleversion?

I’m having difficulties with the new mandatory SonarQube plugin which doesn’t allow forkOptions.executable to target another JDK.


(Joshua Street) #2

I’m not sure what you mean by Sonarqube not allowing forkOptions.executable to target another JDK.

What I’ve done in the past is had every javaCompile task have a different executable. That way, your script (along with the sonarqube plugin) can run without issues on later versions of Java while the compilation is done via the specific IBM JDKs provided by (I assuming) websphere.


(Hugo Groeneveld) #3

Hi Joshua,

More and more plugins require a higher java version so I guess it is feasible to make an exception for the compile tasks with the IBM JDK instead of the other way around.

Thx!