From 34c991ba4a687d31f589fc9fd3b9c30a72bed18e Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Thu, 24 Sep 2020 10:22:19 -0400 Subject: [PATCH 1/2] - turns on automatic module for JPMS --- build.gradle | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/build.gradle b/build.gradle index b709aabe7..e228ab755 100644 --- a/build.gradle +++ b/build.gradle @@ -16,6 +16,10 @@ plugins { id 'com.jfrog.bintray' version '1.8.5' } +java { + modularity.inferModulePath = true +} + // In this section you declare where to find the dependencies of your project repositories { // Use jcenter for resolving your dependencies. @@ -48,6 +52,12 @@ def pomConfig = { //Maven Central Release: publishMavenCentralReleasePublicationToMaven2Repository //Bintray Snapshot: publishSnapshotPublicationToMaven3Repository +tasks.jar { + manifest { + attributes('Automatic-Module-Name': project.property('mavenGroupId')) + } +} + task sourceJar(type: Jar) { from sourceSets.main.allJava archiveClassifier = 'sources' From 8bc0c8eb425f1b833c4d92987a405796d607b4a8 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Thu, 24 Sep 2020 10:30:40 -0400 Subject: [PATCH 2/2] - fixes jigsaw module name to make it unique --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index e228ab755..5cfd7cbd4 100644 --- a/build.gradle +++ b/build.gradle @@ -54,7 +54,7 @@ def pomConfig = { tasks.jar { manifest { - attributes('Automatic-Module-Name': project.property('mavenGroupId')) + attributes('Automatic-Module-Name': project.property('mavenGroupId') + '.core') } }