From fae31308e0f077a4af5490c8836eccfcf0e1cb15 Mon Sep 17 00:00:00 2001 From: Jonas Tobias Hopusch Date: Sun, 2 Jan 2022 18:32:46 +0100 Subject: [PATCH] Add java module config to project --- build.gradle.kts | 8 +++++--- src/main/java/module-info.java | 2 ++ 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 src/main/java/module-info.java diff --git a/build.gradle.kts b/build.gradle.kts index 9dd27a7..e595380 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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") } diff --git a/src/main/java/module-info.java b/src/main/java/module-info.java new file mode 100644 index 0000000..72e6d14 --- /dev/null +++ b/src/main/java/module-info.java @@ -0,0 +1,2 @@ +module de.jotoho.waituntil.main { +} \ No newline at end of file