added building standalone

This commit is contained in:
Jörg Henke
2025-05-06 21:03:45 +02:00
parent 45af8e7904
commit c156d2b426
2 changed files with 4 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
/.gradle/ /.gradle/
/bin/ /bin/
/build/

View File

@ -18,7 +18,7 @@ dependencies {
} }
application { application {
mainClass = 'Main' mainClass = 'de.jottyfan.guitools.Main'
} }
test { test {
@ -28,11 +28,12 @@ test {
jar { jar {
manifest { manifest {
attributes ( attributes (
'Main-Class': 'Main', 'Main-Class': application.mainClass,
'Implementation-Version': version 'Implementation-Version': version
) )
} }
archiveBaseName = project.name archiveBaseName = project.name
archiveVersion = project.version
from { from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
} }