From b5db40cb5f8b2ebbd5e789306f156847d286fede Mon Sep 17 00:00:00 2001 From: aanno Date: Tue, 9 Feb 2021 12:27:47 +0100 Subject: [PATCH] java 11 module can't contain '-' --- build.gradle.kts | 2 +- lib/build.gradle.kts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index a5b702a5..c6b19f58 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -49,7 +49,7 @@ tasks.withType { "Implementation-Title" to project.name, "Implementation-Version" to project.version, "Main-Class" to application.mainClass.get(), - "Automatic-Module-Name" to project.name, + "Automatic-Module-Name" to project.name.replace('-', '.'), // Custom (non-standard) attribute "Maven-Group" to project.group ) diff --git a/lib/build.gradle.kts b/lib/build.gradle.kts index 3a941a59..5eadd064 100644 --- a/lib/build.gradle.kts +++ b/lib/build.gradle.kts @@ -38,7 +38,7 @@ tasks.withType { "Implementation-Title" to project.name, "Implementation-Version" to project.version, // use a more meaningful name than 'lib' - "Automatic-Module-Name" to "signal-lib", + "Automatic-Module-Name" to "signal.lib", // Custom (non-standard) attribute "Maven-Group" to project.group )