Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adopt Gradle Toolchain for the JDK (#2343)
Adopting the Gradle Toolchain for the JDK will make the build _safer_ in machines that have multiple JDKs installed and that by mistake can build the project using a JDK higher than the intended. As defined in [Gradle's docs](https://docs.gradle.org/current/userguide/toolchains.html), the toolchains will give us... > Executing the build (e.g. using gradle check) will now handle several things for you and others running your build > Setup all compile, test and javadoc tasks to use the defined toolchain which may be different than the one Gradle itself uses > Gradle detects locally installed JVMs > Gradle chooses a JRE/JDK matching the requirements of the build (in this case a JVM supporting Java 8) > If no matching JVM is found, it will automatically download a matching JDK from AdoptOpenJDK
- Loading branch information