diff --git a/build.gradle b/build.gradle index b709aabe7..5cfd7cbd4 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') + '.core') + } +} + task sourceJar(type: Jar) { from sourceSets.main.allJava archiveClassifier = 'sources'