Add java module config to project

This commit is contained in:
Jonas Tobias Hopusch 2022-01-02 18:32:46 +01:00
parent 427f61e1c2
commit fae31308e0
Failed to generate hash of commit
2 changed files with 7 additions and 3 deletions

View file

@ -22,9 +22,10 @@ java {
tasks.jar {
manifest {
attributes(
"Implementation-Title" to "de.jotoho.waituntil",
"Implementation-Version" to "${project.version}",
"Main-Class" to "de.jotoho.waituntil.Main"
"Implementation-Title" to project.name,
"Implementation-Version" to project.version,
"Main-Class" to "de.jotoho.waituntil.Main",
"Main-Module" to "de.jotoho.waituntil.main"
)
}
}
@ -32,4 +33,5 @@ tasks.jar {
application {
// Define the main class for the application.
mainClass.set("de.jotoho.waituntil.Main")
mainModule.set("de.jotoho.waituntil.main")
}

View file

@ -0,0 +1,2 @@
module de.jotoho.waituntil.main {
}