Tartalomjegyzék

< Java

Gradle

A Gradle

Webhely:

Telepítés

Windowson rendszergazdaként:

choco install gradle

Unix alapú rendszeren sdk1) paranccsal felhasználóként:

sdk install gradle

macOS:

brew install gradle

Ellenőrzés:

gradle -v

Debian alapú Linuxok:

apt install gradle

VSCode

Bővítmény:

Projekt kezdése parancssorban

mkdir app01
cd app01
gradle init
gradle init
Starting a Gradle Daemon (subsequent builds will be faster)

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: Scala
  6: Swift
Enter selection (default: Java) [1..6] 3

Generate multiple subprojects for application? (default: no) [yes, no] 

Select build script DSL:
  1: Groovy
  2: Kotlin
Enter selection (default: Groovy) [1..2] 

Select test framework:
  1: JUnit 4
  2: TestNG
  3: Spock
  4: JUnit Jupiter
Enter selection (default: JUnit Jupiter) [1..4] 

Project name (default: app01): 
Source package (default: app01): 
Enter target version of Java (min. 7) (default: 17): 
Generate build using new APIs and behavior (some features may change in the next minor release)? (default: no) [yes, no]