Add java module config to project
This commit is contained in:
parent
427f61e1c2
commit
fae31308e0
2 changed files with 7 additions and 3 deletions
|
@ -22,9 +22,10 @@ java {
|
||||||
tasks.jar {
|
tasks.jar {
|
||||||
manifest {
|
manifest {
|
||||||
attributes(
|
attributes(
|
||||||
"Implementation-Title" to "de.jotoho.waituntil",
|
"Implementation-Title" to project.name,
|
||||||
"Implementation-Version" to "${project.version}",
|
"Implementation-Version" to project.version,
|
||||||
"Main-Class" to "de.jotoho.waituntil.Main"
|
"Main-Class" to "de.jotoho.waituntil.Main",
|
||||||
|
"Main-Module" to "de.jotoho.waituntil.main"
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -32,4 +33,5 @@ tasks.jar {
|
||||||
application {
|
application {
|
||||||
// Define the main class for the application.
|
// Define the main class for the application.
|
||||||
mainClass.set("de.jotoho.waituntil.Main")
|
mainClass.set("de.jotoho.waituntil.Main")
|
||||||
|
mainModule.set("de.jotoho.waituntil.main")
|
||||||
}
|
}
|
||||||
|
|
2
src/main/java/module-info.java
Normal file
2
src/main/java/module-info.java
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
module de.jotoho.waituntil.main {
|
||||||
|
}
|
Loading…
Reference in a new issue