Skip to content

Commit fb502dc

Browse files
authored
1 parent bee0310 commit fb502dc

File tree

4 files changed

+22
-3
lines changed

4 files changed

+22
-3
lines changed

Parse/build.gradle

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,3 +296,22 @@ publishing {
296296
}
297297

298298
// End of Bintray plugin
299+
300+
apply plugin: "com.jfrog.artifactory"
301+
302+
artifactory {
303+
contextUrl = 'https://oss.jfrog.org'
304+
publish {
305+
repository {
306+
repoKey = 'oss-snapshot-local' // The Artifactory repository key to publish to
307+
308+
username = System.getenv('BINTRAY_USER')
309+
password = System.getenv('BINTRAY_API_KEY')
310+
maven = true
311+
}
312+
defaults {
313+
publishArtifacts = true
314+
publications('MyPublication')
315+
}
316+
}
317+
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ As of April 5, 2017, Parse, LLC has transferred this code to the parse-community
6868
[guide]: http://docs.parseplatform.org/android/guide/
6969

7070
[latest]: https://search.maven.org/remote_content?g=com.parse&a=parse-android&v=LATEST
71-
[snap]: https://oss.sonatype.org/content/repositories/snapshots/
71+
[snap]: https://oss.jfrog.org/artifactory/oss-snapshot-local/com/parse/parse-android/
7272

7373
[build-status-svg]: https://travis-ci.org/parse-community/Parse-SDK-Android.svg?branch=master
7474
[build-status-link]: https://travis-ci.org/parse-community/Parse-SDK-Android

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ buildscript {
99
}
1010

1111
plugins {
12+
id "com.jfrog.artifactory" version "4.4.17"
1213
id "com.jfrog.bintray" version "1.7.3"
1314
id 'com.github.ben-manes.versions' version '0.14.0'
1415
}

scripts/publish_snapshot.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ elif [ "$TRAVIS_BRANCH" != "$BRANCH" ]; then
1414
echo "Skipping publishing SNAPSHOT: wrong branch. Expected '$BRANCH' but was '$TRAVIS_BRANCH'"
1515
else
1616
echo "Publishing SNAPSHOT..."
17-
./gradlew uploadArchives
17+
./gradlew artifactoryPublish
1818
echo "SNAPSHOT published!"
1919
fi
20-

0 commit comments

Comments
 (0)