Update build.gradle to build JAR with dependencies

This commit is contained in:
Wirlaburla 2024-07-10 01:36:41 -04:00
parent bf023781d2
commit 125fc238b3

View File

@ -28,6 +28,17 @@ java {
} }
} }
jar {
manifest {
attributes(
'Main-Class': 'Main'
)
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}
application { application {
mainClass = 'Main' mainClass = 'Main'
} }