How-to articles, tricks, and solutions about BUILD.GRADLE

How do I tell Gradle to use specific JDK version?

To specify the JDK version that Gradle should use, you can include the org.gradle.java.home property in the gradle.properties file in the root project directory.

How to add local .jar file dependency to build.gradle file?

To add a local JAR file dependency to a build.gradle file, you can use the compile fileTree() method and specify the directory where the JAR file is located.