add main classs to manifest

This commit is contained in:
jacekpoz 2024-04-12 13:12:55 +02:00
parent bc8d0cca69
commit 991c864826
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8

View file

@ -32,6 +32,12 @@ java {
}
}
tasks.withType<Jar> {
manifest {
attributes["Main-Class"] = "pl.jacekpoz.Main"
}
}
application {
// Define the main class for the application.
mainClass = "pl.jacekpoz.Main"