From beeb5ea919788a3af9ee85f76508fea37d87630f Mon Sep 17 00:00:00 2001 From: Jurgen Date: Wed, 19 Feb 2020 09:18:14 +0200 Subject: [PATCH] Added Automatic-Module-Name to JAR manifest --- richtextfx/build.gradle | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/richtextfx/build.gradle b/richtextfx/build.gradle index 6756c1e83..8b36e879c 100644 --- a/richtextfx/build.gradle +++ b/richtextfx/build.gradle @@ -75,6 +75,7 @@ jar { 'Specification-Version': project.specificationVersion, 'Implementation-Title': 'RichTextFX', 'Implementation-Version': project.version, + 'Automatic-Module-Name': 'org.fxmisc.richtext', 'Multi-Release': 'true') } } @@ -248,7 +249,7 @@ uploadArchives.onlyIf { doUploadArchives } task fatJar(type: Jar, dependsOn: classes) { appendix = 'fat' - manifest.attributes( 'Multi-Release': 'true' ) + manifest.attributes( 'Automatic-Module-Name': 'org.fxmisc.richtext', 'Multi-Release': 'true' ) into 'META-INF/versions/9', { from sourceSets.java9.output } from sourceSets.main.output from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }