@@ -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
2024repositories {
2125 // Use jcenter for resolving your dependencies.
@@ -31,12 +35,12 @@ dependencies {
3135 // Use JUnit test framework
3236 testImplementation ' junit:junit:4.13'
3337
34- implementation ' com.google.code.gson:gson:2.8.6'
38+ api ' com.google.code.gson:gson:2.8.6'
3539
3640 implementation ' com.squareup.okhttp3:okhttp:3.12.1'
3741
3842 // Core Http library
39- implementation ' com.microsoft.graph:microsoft-graph-core:1.0.5'
43+ api ' com.microsoft.graph:microsoft-graph-core:1.0.5'
4044}
4145
4246def pomConfig = {
@@ -54,12 +58,20 @@ 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+
5767task sourceJar (type : Jar ) {
68+ outputs. cacheIf { true }
5869 from sourceSets. main. allJava
5970 archiveClassifier = ' sources'
6071}
6172
6273task javadocJar (type : Jar , dependsOn : javadoc) {
74+ outputs. cacheIf { true }
6375 from javadoc. destinationDir
6476 archiveClassifier = ' javadoc'
6577}
0 commit comments