java 11 module can't contain '-'

This commit is contained in:
aanno 2021-02-09 12:27:47 +01:00
parent e9deea7a33
commit b5db40cb5f
2 changed files with 2 additions and 2 deletions

View file

@ -49,7 +49,7 @@ tasks.withType<Jar> {
"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
)