Skip to content

Commit

Permalink
trying to consume artifacts from sdk registry
Browse files Browse the repository at this point in the history
  • Loading branch information
VysotskiVadim committed Apr 22, 2022
1 parent 9c903a9 commit 5c1ca3a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
23 changes: 21 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,16 @@ buildscript {
apply from: "${rootDir}/gradle/dependencies.gradle"

repositories {
mavenLocal()
maven {
url 'https://api.mapbox.com/downloads/v2/snapshots/maven'
authentication {
basic(BasicAuthentication)
}
credentials {
username = "mapbox"
password = project.hasProperty('SDK_REGISTRY_TOKEN') ? project.property('SDK_REGISTRY_TOKEN') : System.getenv('SDK_REGISTRY_TOKEN')
}
}
maven { url 'https://plugins.gradle.org/m2' }
google()
mavenCentral()
Expand Down Expand Up @@ -39,7 +48,16 @@ tasks.withType(JavaCompile) {

allprojects {
repositories {
mavenLocal()
maven {
url 'https://api.mapbox.com/downloads/v2/snapshots/maven'
authentication {
basic(BasicAuthentication)
}
credentials {
username = "mapbox"
password = project.hasProperty('SDK_REGISTRY_TOKEN') ? project.property('SDK_REGISTRY_TOKEN') : System.getenv('SDK_REGISTRY_TOKEN')
}
}
maven { url 'https://plugins.gradle.org/m2' }
google()
mavenCentral()
Expand All @@ -54,6 +72,7 @@ allprojects {
password = project.hasProperty('SDK_REGISTRY_TOKEN') ? project.property('SDK_REGISTRY_TOKEN') : System.getenv('SDK_REGISTRY_TOKEN')
}
}

// uncomment if snapshots access is needed
// maven { url 'https://oss.jfrog.org/artifactory/oss-snapshot-local/' }
}
Expand Down
4 changes: 2 additions & 2 deletions gradle/dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ ext {

dependenciesList = [
autoValue : "com.google.auto.value:auto-value:${version.autoValue}",
autoValueGson : "com.mapbox.auto.value:auto-value-gson:${version.autoValueGson}",
autoValueGsonRuntime: "com.mapbox.auto.value:auto-value-gson-runtime:${version.autoValueGson}",
autoValueGson : "com.mapbox.mapboxsdk:auto-value-gson:${version.autoValueGson}",
autoValueGsonRuntime: "com.mapbox.mapboxsdk:auto-value-gson-runtime:${version.autoValueGson}",
junit : "junit:junit:${version.junit}",
supportAnnotation : "androidx.annotation:annotation:${version.annotation}",
gson : "com.google.code.gson:gson:${version.gson}",
Expand Down

0 comments on commit 5c1ca3a

Please sign in to comment.