Skip to content

Commit 9ce8f87

Browse files
committed
- replaces gradle upgrade fixes from core
1 parent a621d63 commit 9ce8f87

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

build.gradle

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ plugins {
1313
id 'eclipse'
1414
id 'maven-publish'
1515
id 'signing'
16+
id 'com.jfrog.bintray' version '1.8.5'
1617
}
1718

1819
// In this section you declare where to find the dependencies of your project
@@ -191,7 +192,28 @@ publishing {
191192
}
192193
}
193194
}
195+
}
194196

197+
bintray {
198+
if (project.rootProject.file('local.properties').exists()) {
199+
Properties properties = new Properties()
200+
properties.load(project.rootProject.file('local.properties').newDataInputStream())
201+
user = (properties.containsKey('bintray.user')) ? properties.getProperty('bintray.user').toLowerCase() : "BINTRAY_USERNAME"
202+
key = properties.getProperty('bintray.apikey')
203+
}
204+
publications = ['mavenCentralRelease']
205+
pkg {
206+
repo = 'Maven'
207+
name = project.property('mavenArtifactId')
208+
userOrg = 'microsoftgraph'
209+
licenses = ['MIT']
210+
vcsUrl = 'https://github.com/microsoftgraph/msgraph-beta-sdk-java.git'
211+
publicDownloadNumbers = true
212+
version {
213+
name = "${mavenMajorVersion}.${mavenMinorVersion}.${mavenPatchVersion}"
214+
vcsTag = "${mavenMajorVersion}.${mavenMinorVersion}.${mavenPatchVersion}"
215+
}
216+
}
195217
}
196218

197219
compileJava {
@@ -269,7 +291,7 @@ gradle.taskGraph.whenReady { taskGraph ->
269291

270292
model {
271293
tasks.generatePomFileForMavenCentralReleasePublication {
272-
destination = file("$buildDir/generated-pom.xml")
294+
destination = file("${project.buildDir}/generated-pom.xml")
273295
}
274296
tasks.publishMavenCentralReleasePublicationToMavenLocal {
275297
dependsOn project.tasks.signArchives

0 commit comments

Comments
 (0)