-
Notifications
You must be signed in to change notification settings - Fork 14
/
settings.gradle.kts
58 lines (50 loc) · 1.53 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
@file:Suppress("UnstableApiUsage")
pluginManagement {
repositories {
gradlePluginPortal()
google()
mavenCentral()
}
}
plugins {
id("com.gradle.develocity") version "3.17.6"
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
gradlePluginPortal()
google()
mavenCentral()
}
}
develocity {
buildScan {
termsOfUseUrl = "https://gradle.com/terms-of-service"
termsOfUseAgree = "yes"
}
}
val remoteCacheUrl: String? by extra
val cacheUrl: String? = if (System.getenv("REMOTE_CACHE_URL") == null) remoteCacheUrl else System.getenv("REMOTE_CACHE_URL")
if (cacheUrl != null) {
buildCache {
remote<HttpBuildCache> {
url = uri(cacheUrl)
isEnabled = true
isPush = true
isAllowUntrustedServer = true
isAllowInsecureProtocol = false
if (isEnabled) {
println("Using remote build cache: $cacheUrl")
}
val remoteCacheUser: String? by extra
val remoteCachePass: String? by extra
credentials {
username = if (System.getenv("REMOTE_CACHE_USER") == null) remoteCacheUser else System.getenv("REMOTE_CACHE_USER")
password = if (System.getenv("REMOTE_CACHE_PASS") == null) remoteCachePass else System.getenv("REMOTE_CACHE_PASS")
}
}
}
} else {
println("Not using remote build cache!")
}
rootProject.name = "barcode"