-
Notifications
You must be signed in to change notification settings - Fork 4
/
settings.gradle.kts
61 lines (54 loc) · 1.69 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")
pluginManagement {
repositories {
gradlePluginPortal()
google()
mavenCentral()
}
}
plugins {
id("com.gradle.develocity") version "3.17.5"
}
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
if (System.getenv("REMOTE_CACHE_URL") != null || remoteCacheUrl != null) {
buildCache {
local {
removeUnusedEntriesAfterDays = 30
}
val cacheUrl = if (System.getenv("REMOTE_CACHE_URL") == null) remoteCacheUrl as String else System.getenv("REMOTE_CACHE_URL")
remote<HttpBuildCache> {
url = uri(cacheUrl)
isEnabled = true
isPush = true
isAllowUntrustedServer = true
isAllowInsecureProtocol = true
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 as String else System.getenv("REMOTE_CACHE_USER")
password = if (System.getenv("REMOTE_CACHE_PASS") == null) remoteCachePass as String else System.getenv("REMOTE_CACHE_PASS")
}
}
}
} else {
println("Not using remote build cache!")
}
rootProject.name = "Bible"
include(":app")