-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsettings.gradle.kts
61 lines (54 loc) · 1.45 KB
/
settings.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
@file:Suppress("UnstableApiUsage")
fun getProp(key: String): String? {
val isCI = System.getenv("CI") == "true"
return if (isCI) {
System.getenv(key)
} else {
val localProperties = File(rootDir, "local.properties")
if (localProperties.exists()) {
java.util.Properties().apply {
localProperties.inputStream().use { load(it) }
}.getProperty(key)
} else null
}
}
pluginManagement {
repositories {
google()
gradlePluginPortal()
mavenCentral()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven {
url = uri("https://jitpack.io")
}
maven {
url = uri("https://androidx.dev/storage/compose-compiler/repository/")
}
maven {
url = uri("https://maven.pkg.github.com/Zxilly/upgrader")
credentials {
username = getProp("GITHUB_USER") ?: "Zxilly"
password = getProp("GITHUB_TOKEN")
}
}
}
}
plugins {
`gradle-enterprise`
}
gradleEnterprise {
buildScan {
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
publishAlwaysIf(System.getenv("GITHUB_ACTIONS") == "true")
publishOnFailure()
}
}
rootProject.name = "Notify"
include("app")