Updated on 2026-08-14
This commit is contained in:
parent
28d8d33ace
commit
1963a299a5
2 changed files with 23 additions and 2 deletions
|
|
@ -8,6 +8,18 @@ pluginManagement {
|
|||
includeBuild("plugins/configuration")
|
||||
}
|
||||
|
||||
val properties = java.util.Properties()
|
||||
val propertiesFile = File(rootDir.absolutePath, "local.properties")
|
||||
if (propertiesFile.exists()) {
|
||||
properties.load(propertiesFile.inputStream())
|
||||
println("Authenticating user: " + properties.getProperty("gpr.user"))
|
||||
} else {
|
||||
println(
|
||||
"local.properties not found, please create it next to build.gradle and set gpr.user and gpr.key (Create a GitHub package read only + non expiration token at https://github.com/settings/tokens)\n" +
|
||||
"Or set GITHUB_ACTOR and GITHUB_TOKEN environment variables"
|
||||
)
|
||||
}
|
||||
|
||||
dependencyResolutionManagement {
|
||||
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
||||
|
||||
|
|
@ -17,6 +29,15 @@ dependencyResolutionManagement {
|
|||
mavenLocal()
|
||||
jcenter() // unable to replace with mavenCentral() due to rekotlin and com.otaliastudios:cameraview
|
||||
maven("https://nexus.tangem-tech.com/repository/maven-releases/")
|
||||
maven {
|
||||
// setting any repository from tangem project allows maven search all packages in the project
|
||||
url = uri("https://maven.pkg.github.com/tangem/blockchain-sdk-kotlin")
|
||||
credentials {
|
||||
println(System.getenv("GITHUB_ACTOR"))
|
||||
username = properties.getProperty("gpr.user") ?: System.getenv("GITHUB_ACTOR")
|
||||
password = properties.getProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN")
|
||||
}
|
||||
}
|
||||
maven("https://jitpack.io")
|
||||
maven("https://zendesk.jfrog.io/zendesk/repo")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue