diff --git a/build.gradle.kts b/build.gradle.kts index 052e3c22..cf4c17ec 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -6,6 +6,7 @@ plugins { } version = "0.7.4" +group = "org.asamk.signal" java { sourceCompatibility = JavaVersion.VERSION_11 @@ -44,7 +45,10 @@ tasks.withType { attributes( "Implementation-Title" to project.name, "Implementation-Version" to project.version, - "Main-Class" to application.mainClass.get() + "Main-Class" to application.mainClass.get(), + "Automatic-Module-Name" to project.name, + // Custom (non-standard) attribute + "Maven-Group" to project.group ) } } diff --git a/lib/build.gradle.kts b/lib/build.gradle.kts index b9dfbc21..ce7142a1 100644 --- a/lib/build.gradle.kts +++ b/lib/build.gradle.kts @@ -26,6 +26,19 @@ configurations { } } +tasks.withType { + manifest { + attributes( + "Implementation-Title" to project.name, + "Implementation-Version" to project.version, + // use a more meaningful name than 'lib' + "Automatic-Module-Name" to "signal-lib", + // Custom (non-standard) attribute + "Maven-Group" to project.group + ) + } +} + tasks.withType { options.encoding = "UTF-8" }