chore: bundle deps in jar
This commit is contained in:
@@ -36,9 +36,16 @@ application {
|
|||||||
mainClass = 'gui.Main'
|
mainClass = 'gui.Main'
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.named('test') {
|
// Add libraries into the final jar
|
||||||
// Use JUnit Platform for unit tests.
|
jar {
|
||||||
useJUnitPlatform()
|
archiveBaseName = rootProject.getName()
|
||||||
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||||
|
manifest {
|
||||||
|
attributes "Main-Class": application.mainClass
|
||||||
|
}
|
||||||
|
from {
|
||||||
|
configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
run {
|
run {
|
||||||
|
|||||||
Reference in New Issue
Block a user