diff --git a/build.gradle b/build.gradle index 81424a63..0745a0fa 100644 --- a/build.gradle +++ b/build.gradle @@ -23,6 +23,12 @@ configure(subprojects.findAll {it.name != "examples"}) { test { useJUnitPlatform() } + + jar { + manifest { + attributes "Automatic-Module-Name": "com.electronwill.nightconfig.$project.name" + } + } task javadocJar(type: Jar, dependsOn: javadoc) { archiveClassifier = 'javadoc' @@ -119,4 +125,4 @@ configure(subprojects.findAll {it.name.contains("core")}) { artifacts { tests testJar } -} \ No newline at end of file +}