@@ -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
@@ -161,34 +158,6 @@ publishing {
161158 }
162159 }
163160 }
164-
165- maven {
166- url = ' http://oss.jfrog.org/artifactory/oss-snapshot-local'
167- name = ' jfrogSnapshot'
168-
169- credentials {
170- if (project. rootProject. file(' local.properties' ). exists()) {
171- Properties properties = new Properties ()
172- properties. load(project. rootProject. file(' local.properties' ). newDataInputStream())
173- username = (properties. containsKey(' bintray.user' )) ? properties. getProperty(' bintray.user' ). toLowerCase() : " BINTRAY_USERNAME"
174- password = properties. getProperty(' bintray.apikey' )
175- }
176- }
177- }
178-
179- maven {
180- url = ' https://oss.jfrog.org/artifactory/libs-release'
181- name = ' jfrog'
182-
183- credentials {
184- if (project. rootProject. file(' local.properties' ). exists()) {
185- Properties properties = new Properties ()
186- properties. load(project. rootProject. file(' local.properties' ). newDataInputStream())
187- username = (properties. containsKey(' bintray.user' )) ? properties. getProperty(' bintray.user' ). toLowerCase() : " BINTRAY_USERNAME"
188- password = properties. getProperty(' bintray.apikey' )
189- }
190- }
191- }
192161 }
193162}
194163
@@ -204,38 +173,6 @@ def fixAscNames = { name ->
204173 name. replace(' msgraph-sdk-java' , " ${ project.property('mavenArtifactId')} -${ mavenMajorVersion} .${ mavenMinorVersion} .${ mavenPatchVersion} " )
205174 }
206175}
207- bintray {
208- if (project. rootProject. file(' local.properties' ). exists()) {
209- Properties properties = new Properties ()
210- properties. load(project. rootProject. file(' local.properties' ). newDataInputStream())
211- user = (properties. containsKey(' bintray.user' )) ? properties. getProperty(' bintray.user' ). toLowerCase() : " BINTRAY_USERNAME"
212- key = properties. getProperty(' bintray.apikey' )
213- }
214- publications = [' mavenCentralRelease' ]
215- filesSpec {
216- from (' build/libs' ) {
217- include ' msgraph-sdk-java*.jar.asc'
218- rename fixAscNames
219- }
220- from (' build' ) {
221- include ' generated-pom.xml.asc'
222- rename fixAscNames
223- }
224- into " com/microsoft/graph/${ project.property('mavenArtifactId')} /${ mavenMajorVersion} .${ mavenMinorVersion} .${ mavenPatchVersion} /"
225- }
226- pkg {
227- repo = ' Maven'
228- name = project. property(' mavenArtifactId' )
229- userOrg = ' microsoftgraph'
230- licenses = [' MIT' ]
231- vcsUrl = ' https://github.com/microsoftgraph/msgraph-sdk-java.git'
232- publicDownloadNumbers = true
233- version {
234- name = " ${ mavenMajorVersion} .${ mavenMinorVersion} .${ mavenPatchVersion} "
235- vcsTag = " ${ mavenMajorVersion} .${ mavenMinorVersion} .${ mavenPatchVersion} "
236- }
237- }
238- }
239176
240177compileJava {
241178 sourceCompatibility = 1.7
0 commit comments