Skip to content

Commit 8771aa5

Browse files
authored
Merge pull request #500 from microsoftgraph/feature/jigsaw
- turns on automatic module for JPMS
2 parents bd3ac63 + 1ac304b commit 8771aa5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ plugins {
1616
id 'com.jfrog.bintray' version '1.8.5'
1717
}
1818

19+
java {
20+
modularity.inferModulePath = true
21+
}
22+
1923
// In this section you declare where to find the dependencies of your project
2024
repositories {
2125
// Use jcenter for resolving your dependencies.
@@ -54,6 +58,12 @@ def pomConfig = {
5458
//Maven Central Release: publishMavenCentralReleasePublicationToMaven2Repository
5559
//Bintray Snapshot: publishSnapshotPublicationToMaven3Repository
5660

61+
tasks.jar {
62+
manifest {
63+
attributes('Automatic-Module-Name': project.property('mavenGroupId'))
64+
}
65+
}
66+
5767
task sourceJar(type: Jar) {
5868
outputs.cacheIf { true }
5969
from sourceSets.main.allJava

0 commit comments

Comments
 (0)