File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed
Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,12 @@ def pomConfig = {
4747 }
4848}
4949
50+ // Publishing tasks-
51+ // Maven Central Snapshot: publishSnapshotPublicationToMavenRepository
52+ // Maven Central Release: publishMavenCentralReleasePublicationToMaven2Repository
53+ // Bintray Snapshot: publishSnapshotPublicationToMaven3Repository
54+ // Bintray Release: uploadArchives
55+
5056publishing {
5157
5258 publications {
@@ -72,7 +78,7 @@ publishing {
7278 }
7379
7480 }
75- mavenCentralSnapshot (MavenPublication ) {
81+ Snapshot (MavenPublication ) {
7682 customizePom(pom)
7783 groupId ' com.microsoft.graph'
7884 artifactId ' microsoft-graph'
@@ -161,6 +167,24 @@ publishing {
161167 }
162168 }
163169 }
170+
171+ maven {
172+ url = project. property(' mavenBintraySnapshotUrl' )
173+
174+ credentials {
175+ if (project. rootProject. file(' local.properties' ). exists()) {
176+
177+ Properties properties = new Properties ()
178+
179+ properties. load(project. rootProject. file(' local.properties' ). newDataInputStream())
180+
181+ username = properties. getProperty(' bintray.user' )
182+
183+ password = properties. getProperty(' bintray.apikey' )
184+
185+ }
186+ }
187+ }
164188 }
165189
166190}
Original file line number Diff line number Diff line change 2222org.gradle.jvmargs =-XX:MaxPermSize=512m -Xmx2g
2323
2424mavenRepoUrl = https://api.bintray.com/content/microsoftgraph/Maven/microsoft-graph
25+ mavenBintraySnapshotUrl = http://oss.jfrog.org/artifactory/oss-snapshot-local
2526mavenGroupId = com.microsoft.graph
2627mavenArtifactId = microsoft-graph
2728mavenMajorVersion = 1
You can’t perform that action at this time.
0 commit comments