JRE/JDK support in Gradle 5

We currently run the Gradle Build Tool with JRE 7 as we have a large source base and are currently unable to update the JRE version used by our built application. The latest information that I have on this is that it will be at least 6 months until we can upgrade (and, as this date continues to be pushed out, I lack confidence that we will be able to upgrade even at this time).

With Gradle 5, what will the requirements be for the JRE/JDK version?
• Will JRE/JVM 8 be required to run Gradle?
• Will we still be able to set the source and target for the Java compiler to 1.7?
• What further requirements will there be for the JRE/JDK?

Please see https://docs.gradle.org/current/userguide/building_java_projects.html#sec:java_cross_compilation

Yes, I understand how to configure cross-compilation. That was not the question. The question concerns what will and will not be supported for Gradle 5

The chapter answers both of your questions:

  • running Gradle on Java 7 has been deprecated and is scheduled to be removed in Gradle 5.0
  • Gradle still supports compiling, testing, generating Javadoc and executing applications for Java 6 and Java 7. Java 5 is not supported.