Java: Package Manager

Gradle

Create your first project with gradle

Step 1: Create new project folder

mkdir gradle_sample

Step 2: Make folder structure

gradle init --type java-library

Step 3: Import to IntelliJ

Open IntelliJ, click File > New... > Project From Existing Sources... 

Plugins

Application plugin

Usages

1. Using the application plugin

Add this line in build.gradle

apply plugin: 'application'

2. Configure the application main class

mainClassName = "org.gradle.sample.Main"