Browse Source

Gradle Build konfiguriert.

paul
yl60lepu 4 years ago
parent
commit
1905a31046
1 changed files with 12 additions and 1 deletions
  1. +12
    -1
      app/build.gradle

+ 12
- 1
app/build.gradle View File

@ -32,7 +32,18 @@ dependencies {
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.0'
}
mainClassName = 'de.yannicpunktdee.yoshibot.main.Main'
application {
// Define the main class for the application.
mainClass = 'de.yannicpunktdee.yoshibot.main.Main'
mainClass = "$mainClassName"
}
jar{
manifest{
attributes "Main-Class": "$mainClassName"
}
from {
configurations.runtimeClasspath.findAll({!it.path.endsWith(".pom")}).collect { it.isDirectory() ? it : zipTree(it) }
}
}

Loading…
Cancel
Save