2023-01-28 00:00:52 +01:00
|
|
|
pluginManagement {
|
2023-09-06 19:48:48 +02:00
|
|
|
// TODO: remove this once https://github.com/gradle/gradle/issues/23572 is fixed
|
|
|
|
val (gprUser, gprKey) = if (File(".gradle/gradle.properties").exists()) {
|
|
|
|
File(".gradle/gradle.properties").inputStream().use {
|
|
|
|
java.util.Properties().apply { load(it) }.let {
|
|
|
|
it.getProperty("gpr.user") to it.getProperty("gpr.key")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
null to null
|
|
|
|
}
|
|
|
|
|
2023-01-28 00:00:52 +01:00
|
|
|
repositories {
|
|
|
|
gradlePluginPortal()
|
|
|
|
google()
|
|
|
|
mavenCentral()
|
2023-04-23 14:36:52 +02:00
|
|
|
maven("https://jitpack.io")
|
|
|
|
maven {
|
|
|
|
url = uri("https://maven.pkg.github.com/revanced/revanced-patcher")
|
|
|
|
credentials {
|
2023-09-06 19:48:48 +02:00
|
|
|
username = gprUser ?: providers.gradleProperty("gpr.user").orNull ?: System.getenv("GITHUB_ACTOR")
|
|
|
|
password = gprKey ?: providers.gradleProperty("gpr.key").orNull ?: System.getenv("GITHUB_TOKEN")
|
2023-04-23 14:36:52 +02:00
|
|
|
}
|
|
|
|
}
|
2023-01-28 00:00:52 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
dependencyResolutionManagement {
|
2023-09-06 19:48:48 +02:00
|
|
|
// TODO: remove this once https://github.com/gradle/gradle/issues/23572 is fixed
|
|
|
|
val (gprUser, gprKey) = if (File(".gradle/gradle.properties").exists()) {
|
|
|
|
File(".gradle/gradle.properties").inputStream().use {
|
|
|
|
java.util.Properties().apply { load(it) }.let {
|
|
|
|
it.getProperty("gpr.user") to it.getProperty("gpr.key")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
null to null
|
|
|
|
}
|
|
|
|
|
2023-04-23 14:36:52 +02:00
|
|
|
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
2023-01-28 00:00:52 +01:00
|
|
|
repositories {
|
|
|
|
google()
|
|
|
|
mavenCentral()
|
2023-04-23 14:36:52 +02:00
|
|
|
maven("https://jitpack.io")
|
|
|
|
maven {
|
|
|
|
url = uri("https://maven.pkg.github.com/revanced/revanced-patcher")
|
|
|
|
credentials {
|
2023-09-06 19:48:48 +02:00
|
|
|
username = gprUser ?: providers.gradleProperty("gpr.user").orNull ?: System.getenv("GITHUB_ACTOR")
|
|
|
|
password = gprKey ?: providers.gradleProperty("gpr.key").orNull ?: System.getenv("GITHUB_TOKEN")
|
2023-04-23 14:36:52 +02:00
|
|
|
}
|
|
|
|
}
|
2023-01-28 00:00:52 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
rootProject.name = "ReVanced Manager"
|
|
|
|
include(":app")
|