File tree Expand file tree Collapse file tree 6 files changed +9
-27
lines changed
Expand file tree Collapse file tree 6 files changed +9
-27
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,6 @@ release:
1414publish-stable :
1515 export IS_LOCAL_DEVELOPMENT=false; ./gradlew :library:bintrayUpload
1616
17- publish-local :
18- # This publishes to ~/.m2/repository/com/mapbox/mapboxsdk
19- export IS_LOCAL_DEVELOPMENT=true; ./gradlew :library:bintrayUpload
20-
2117publish-snapshot-to-artifactory :
2218 # This publishes to ~/.m2/repository/com/mapbox/mapboxsdk
2319 export IS_LOCAL_DEVELOPMENT=false; ./gradlew :library:artifactoryPublish
Original file line number Diff line number Diff line change @@ -42,8 +42,8 @@ The library is published to Maven Central and SNAPSHOTS are available whenever n
4242``` java
4343// In the root build.gradle file
4444repositories {
45- mavenCentral ()
46- maven { url " http ://oss.sonatype .org/content/repositories/snapshots/ " }
45+ jcenter ()
46+ maven { url ' https ://oss.jfrog .org/artifactory/oss-snapshot-local/ ' }
4747}
4848```
4949``` java
Original file line number Diff line number Diff line change @@ -5,8 +5,6 @@ buildscript {
55 repositories {
66 google()
77 jcenter()
8- // For publishing files to Bintray
9- maven { url ' https://oss.jfrog.org/artifactory/oss-snapshot-local/' }
108 }
119 dependencies {
1210 classpath pluginDependencies. gradle
Original file line number Diff line number Diff line change @@ -70,13 +70,19 @@ jobs:
7070 BINTRAY_API_KEY=$BINTRAY_API_KEY
7171 GPG_PASSPHRASE=$GPG_PASSPHRASE"
7272 fi
73+ - run :
74+ name : Update version name
75+ command : |
76+ if [[ $CIRCLE_TAG == v* ]]; then
77+ sed -i -e "s/^VERSION_NAME=.*/VERSION_NAME=${CIRCLE_TAG:9}/" library/gradle.properties
78+ fi
7379 - run :
7480 name : Build libraries
7581 command : make release
7682 - deploy :
7783 name : Publish to Bintray
7884 command : |
79- if [[ $CIRCLE_BRANCH == master ]] || [[ $CIRCLE_BRANCH == release-v* ]] || [[ $ CIRCLE_TAG == v* ]]; then
85+ if [[ $CIRCLE_BRANCH == master ]] || [[ $CIRCLE_TAG == v* ]]; then
8086 version=$(cat library/gradle.properties | grep "VERSION_NAME")
8187 if [[ $version != *"SNAPSHOT"* ]]; then
8288 make publish-stable
Original file line number Diff line number Diff line change @@ -47,6 +47,5 @@ dependencies {
4747 androidTestImplementation dependenciesList. testEspressoCore
4848}
4949
50- apply from : " ${ rootDir} /gradle/javadoc.gradle"
5150apply from : " ${ rootDir} /gradle/gradle-bintray.gradle"
5251apply from : " ${ rootDir} /gradle/artifact-settings.gradle"
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments