From 5a65f0514f205ac0caa1561f109c43409e6e1af2 Mon Sep 17 00:00:00 2001 From: Guillaume Raffin Date: Tue, 30 Aug 2022 21:20:38 +0200 Subject: [PATCH] Re-apply PR #84 --- build.gradle | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 +}