@@ -13,7 +13,6 @@ plugins {
1313 id ' eclipse'
1414 id ' maven-publish'
1515 id ' signing'
16- id ' com.jfrog.bintray' version ' 1.8.5'
1716}
1817
1918java {
@@ -30,9 +29,7 @@ sourceSets {
3029
3130// In this section you declare where to find the dependencies of your project
3231repositories {
33- // Use jcenter for resolving your dependencies.
3432 // You can declare any Maven/Ivy/file repository here.
35- jcenter()
3633 mavenCentral()
3734}
3835
@@ -153,34 +150,6 @@ publishing {
153150 }
154151 }
155152 }
156-
157- maven {
158- url = ' http://oss.jfrog.org/artifactory/oss-snapshot-local'
159- name = ' jfrogSnapshot'
160-
161- credentials {
162- if (project. rootProject. file(' local.properties' ). exists()) {
163- Properties properties = new Properties ()
164- properties. load(project. rootProject. file(' local.properties' ). newDataInputStream())
165- username = (properties. containsKey(' bintray.user' )) ? properties. getProperty(' bintray.user' ). toLowerCase() : " BINTRAY_USERNAME"
166- password = properties. getProperty(' bintray.apikey' )
167- }
168- }
169- }
170-
171- maven {
172- url = ' https://oss.jfrog.org/artifactory/libs-release'
173- name = ' jfrog'
174-
175- credentials {
176- if (project. rootProject. file(' local.properties' ). exists()) {
177- Properties properties = new Properties ()
178- properties. load(project. rootProject. file(' local.properties' ). newDataInputStream())
179- username = (properties. containsKey(' bintray.user' )) ? properties. getProperty(' bintray.user' ). toLowerCase() : " BINTRAY_USERNAME"
180- password = properties. getProperty(' bintray.apikey' )
181- }
182- }
183- }
184153 }
185154}
186155
@@ -196,38 +165,6 @@ def fixAscNames = { name ->
196165 name. replace(' msgraph-sdk-java-core' , " ${ project.property('mavenArtifactId')} -${ mavenMajorVersion} .${ mavenMinorVersion} .${ mavenPatchVersion} " )
197166 }
198167}
199- bintray {
200- if (project. rootProject. file(' local.properties' ). exists()) {
201- Properties properties = new Properties ()
202- properties. load(project. rootProject. file(' local.properties' ). newDataInputStream())
203- user = (properties. containsKey(' bintray.user' )) ? properties. getProperty(' bintray.user' ). toLowerCase() : " BINTRAY_USERNAME"
204- key = properties. getProperty(' bintray.apikey' )
205- }
206- publications = [' mavenCentralRelease' ]
207- filesSpec {
208- from (' build/libs' ) {
209- include ' msgraph-sdk-java-core*.jar.asc'
210- rename fixAscNames
211- }
212- from (' build' ) {
213- include ' generated-pom.xml.asc'
214- rename fixAscNames
215- }
216- into " com/microsoft/graph/${ project.property('mavenArtifactId')} /${ mavenMajorVersion} .${ mavenMinorVersion} .${ mavenPatchVersion} /"
217- }
218- pkg {
219- repo = ' Maven'
220- name = project. property(' mavenArtifactId' )
221- userOrg = ' microsoftgraph'
222- licenses = [' MIT' ]
223- vcsUrl = ' https://github.com/microsoftgraph/msgraph-sdk-java-core.git'
224- publicDownloadNumbers = true
225- version {
226- name = " ${ mavenMajorVersion} .${ mavenMinorVersion} .${ mavenPatchVersion} "
227- vcsTag = " ${ mavenMajorVersion} .${ mavenMinorVersion} .${ mavenPatchVersion} "
228- }
229- }
230- }
231168
232169compileJava {
233170 sourceCompatibility = 1.7
0 commit comments