How to get a minimal project to start with gradle
Create a project
This method is the preferred one because you get the whole structure (if you choose that you will create an application, you get a minimal main entry and all the plugins needed)
mkdir myproject
cd myproject
gradle init
Select type of project to generate:
1: basic
2: application
3: library
4: Gradle plugin
Enter selection (default: basic) [1..4] 2
Select implementation language:
1: C++
2: Groovy
3: Java
4: Kotlin
5: Swift
Enter selection (default: Java) [1..5] 3
Select build script DSL:
1: Groovy
2: Kotlin
Enter selection (default: Groovy) [1..2] 2
Select test framework:
1: JUnit 4
2: TestNG
3: Spock
4: JUnit Jupiter
Enter selection (default: JUnit 4) [1..4]
Project name (default: myProject):
Source package (default: directoryName): com.gerardnico.myproject
> Task :init
Get more help with your project: https://guides.gradle.org/creating-new-gradle-builds
It creates:
You get less artifact than gradle_init