Creating and Executing a Gradle Project
Creating and Executing a Gradle Project To Create a Gradle Project: Navigate to the required directory >> Open Command prompt >> Run "gradle init" command Next it will ask for the type of build to generate: 1. Application 2. Library 3. Gradle plugin 4. Basic Next it will ask to select Implementation language: 1. Java 2. Kotlin 3. Groovy 4. Scala 5. C++ 6. Swift Next, it will ask for Target java version Next, Select Application structure: 1. Single Application Project 2. Application and Library Project Select Build Script DSL: 1. Kotlin 2. Groovy >> Select Groovy here Select Test Framework: 1. JUnit 2. TestNG 3. Spock 4. JUnit Jupiter A Gradle project containing following files will be created: Executing/Building a Gradle Project The Gradle Build process Compiles, Tests and Packages a project into a deployable unit that can be run in the target environment Gradle expects Java code to be present in src/main/java folder and tests in src/test/java project After