gradle run jar code example
Example 1: Gradle include external jar
repositories {
flatDir {
dirs 'libs'
}
}
dependencies {
implementation name: 'gson-2.2.4'
}
Example 2: gradlew make jar
$./gradlew bootJar
repositories {
flatDir {
dirs 'libs'
}
}
dependencies {
implementation name: 'gson-2.2.4'
}
$./gradlew bootJar