![]() The following sample code tells Gradle to not build any variants that combine the minApi21 and. With Gradle 6. Java sources only in the src/tests/java/ directory. How do you configure gradle build with java installation and configuration? Gradle project has a configuration to install the required Java version and configure.install java 11 version on the machine and it is straightforward. ![]() How to install and configure java version with gradle build?īy default, Gradle uses the java version from the JAVA_HOME environment variable path configured in the machine, and JAVA_HOME points to JDK installed on the machine.įor example, the machine is installed with the JDK 1.8 version and the Gradle project needs a java 11 version. The above script tells to use java version 12 to compile java files in a Gradle project.
0 Comments
Leave a Reply. |