Template 'quick start' project
- Java
- Guava
- commons-lang3
- commons-io
- Gradle 6.4
- JUnit5
- Mockito
-
Optional to avoid GIT dependencies on the repo
Go to https://github.com/benfro/gradle-template, choose Clone or download => Download ZIP and extract on your disk.
Import into the IDE of your choice. -
Change to your preferred name in file 'settings-gradle'
rootProject.name = 'gradle-template'
-
Change group entry in 'build.gradle'
group 'net.benfro'
-
Change to your preferred package stucture in 'src/main/java' and 'src/test/java'
-
Run from command prompt (or IDEA's gradle tab)
gradle init
TIP: If you run IDEA and want to create project setups for it:
// id 'idea' <== uncomment this in file 'build.gradle'
and run 'gradle idea'
Gradle documentation: https://docs.gradle.org/current/userguide/userguide.html