Skip to content

Commit

Permalink
tweaks after @LukasPaczos review
Browse files Browse the repository at this point in the history
  • Loading branch information
Langston Smith committed Jul 3, 2019
1 parent 468a2e6 commit 48a0524
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 16 deletions.
8 changes: 0 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,6 @@ publish-snapshot:
export IS_LOCAL_DEVELOPMENT=false; ./gradlew :services:artifactoryPublish ; \
export IS_LOCAL_DEVELOPMENT=false; ./gradlew :services-turf:artifactoryPublish ; \


publish-local:
# This publishes to ~/.m2/repository/com/mapbox/mapboxsdk
export IS_LOCAL_DEVELOPMENT=true; ./gradlew :services-core: bintrayUpload ; \
export IS_LOCAL_DEVELOPMENT=true; ./gradlew :services-geojson: bintrayUpload ; \
export IS_LOCAL_DEVELOPMENT=true; ./gradlew :services: bintrayUpload ; \
export IS_LOCAL_DEVELOPMENT=true; ./gradlew :services-turf: bintrayUpload ; \

graphs:
./gradlew :services-core:generateDependencyGraphMapboxLibraries
./gradlew :services-geojson:generateDependencyGraphMapboxLibraries
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ If you want to test recent bugfixes or features that have not been packaged in a

```gradle
repositories {
mavenCentral()
maven { url 'https://oss.jfrog.org/artifactory/oss-snapshot-local/' }
jcenter()
maven { url 'https://oss.jfrog.org/artifactory/oss-snapshot-local/' }
}
dependencies {
Expand Down
1 change: 0 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ buildscript {

repositories {
maven { url 'https://plugins.gradle.org/m2' }
maven { url 'https://oss.jfrog.org/artifactory/oss-snapshot-local/' }
google()
mavenCentral()
jcenter()
Expand Down
8 changes: 7 additions & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,19 @@ jobs:
BINTRAY_API_KEY=$BINTRAY_API_KEY
GPG_PASSPHRASE=$GPG_PASSPHRASE"
fi
- run:
name: Update version name
command: |
if [[ $CIRCLE_TAG == v* ]]; then
sed -i -e "s/^VERSION_NAME=.*/VERSION_NAME=${CIRCLE_TAG:9}/" gradle.properties
fi
- run:
name: Build Java libraries
command: make build-release
- deploy:
name: Publish Java libraries to Bintray
command: |
if [[ $CIRCLE_BRANCH == master ]] || [[ $CIRCLE_BRANCH == release-* ]] || [[ $CIRCLE_TAG == android-v* ]]; then
if [[ $CIRCLE_BRANCH == master ]] || [[ $CIRCLE_TAG == android-v* ]]; then
version=$(cat gradle.properties | grep "VERSION_NAME")
if [[ $version != *"SNAPSHOT"* ]]; then
make publish-to-bintray
Expand Down
1 change: 0 additions & 1 deletion services-core/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
VERSION_NAME=4.9.0-SNAPSHOT
POM_ARTIFACT_ID=mapbox-sdk-core
POM_NAME=Mapbox Services SDK
POM_DESCRIPTION=Mapbox Services SDK (Core module)
POM_PACKAGING=jar
1 change: 0 additions & 1 deletion services-geojson/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
VERSION_NAME=4.9.0-SNAPSHOT
POM_ARTIFACT_ID=mapbox-sdk-geojson
POM_NAME=Mapbox Services SDK
POM_DESCRIPTION=Mapbox Services SDK (GeoJSON support)
POM_PACKAGING=jar
1 change: 0 additions & 1 deletion services-turf/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
VERSION_NAME=4.9.0-SNAPSHOT
POM_ARTIFACT_ID=mapbox-sdk-turf
POM_NAME=Mapbox Services SDK
POM_DESCRIPTION=Mapbox Services SDK (Turf support)
POM_PACKAGING=jar
1 change: 0 additions & 1 deletion services/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
VERSION_NAME=4.9.0-SNAPSHOT
POM_ARTIFACT_ID=mapbox-sdk-services
POM_NAME=Mapbox Services SDK
POM_DESCRIPTION=Mapbox Services SDK (APIs)
POM_PACKAGING=jar

0 comments on commit 48a0524

Please sign in to comment.