https://kotlinlang.org logo
Title
j

Jitendra

04/06/2023, 7:46 AM
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 ?
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

Vampire

04/06/2023, 11:07 AM
Yes,
password = settings.SDK_TOKEN
should work.