Skip to content

Commit bb7e176

Browse files
committed
add authentication for maven snapshot repo
1 parent 5758b73 commit bb7e176

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

android/build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ rootProject.allprojects {
2323
}
2424
maven {
2525
url 'https://api.mapbox.com/downloads/v2/snapshots/maven'
26+
authentication {
27+
basic(BasicAuthentication)
28+
}
29+
credentials {
30+
username = "mapbox"
31+
password = System.getenv("SDK_REGISTRY_TOKEN") ?: project.property("SDK_REGISTRY_TOKEN") as String
32+
}
2633
}
2734
}
2835
}

0 commit comments

Comments
 (0)