• Unlike Ant and Maven which use XML for scripting, Gradle uses Groovy, a Domain Specific Language that’s a subset of Java with plenty of syntactic sugar.
  • directory, you can specify that directory using the setRoot property. // When gathering sources for the source set, Gradle looks only in locations //.
  • You can change the selected JDK, IntelliJ IDEA will download the appropriate Gradle version. The only thing you need to have is the internet connection.
  • Test your Gradle installation by typing gradle -v in the CLI. The output should contain the installed Gradle version and the current Gradle configuration details.
  • The Android Studio build system is based on Gradle, and the Android Gradle plugin adds several features that are specific to build Android apps.
  • How Does Gradle Build Work? Gradle builds are used to define a project and its tasks. At least one Gradle build file is located in the root folder of the project.
  • Please note that the Gradle needs JDK 6 or above to be run. Gradle will use the Java JDK which it finds on your system’s PATH environment as JAVA_HOME.
  • For simple builds, the choice between Maven and Gradle is pretty much one of personal taste, or perhaps the taste of your CTO or technical manager.
  • Artifactory provides tight integration with Gradle. All that is needed is a simple modification of your build.gradle script file with a few configuration parameters.