added possiblity to build jar file and override shutdown behavior when closing via alt-f4 or the close button of the window

This commit is contained in:
Hanno Fleischer
2024-12-13 10:15:45 +01:00
parent 1e5c5bd5eb
commit 3658a91b7b
2 changed files with 21 additions and 1 deletions

View File

@@ -26,3 +26,14 @@ implementation project(":mdga:model")
mainClass = 'pp.mdga.client.MdgaApp'
applicationName = 'MDGA'
}
tasks.register('fatJar', Jar) {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest {
attributes 'Main-Class': 'pp.mdga.client.MdgaApp'
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
with jar
}