I want to use SDK_TOKEN from gradle.properties fil...
# gradle
j
I want to use SDK_TOKEN from gradle.properties file, but can’t find a way . Is is possible to use properties in setting.gradle file ?
Copy code
dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
        maven { url "<https://jitpack.io>" }
        maven {
            url 'url'
            authentication {
                basic(BasicAuthentication)
            }
            credentials {
                username = "mapbox"
                password = "SDK_TOKEN"
            }
        }
    }
}
v
Yes,
password = settings.SDK_TOKEN
should work.