-
Notifications
You must be signed in to change notification settings - Fork 112
/
settings.gradle
37 lines (31 loc) · 1.01 KB
/
settings.gradle
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
plugins {
id "com.gradle.enterprise" version "3.15.1"
}
include 'sdk'
include 'examples'
include 'example-android'
gradleEnterprise {
buildScan {
termsOfServiceUrl = 'https://gradle.com/terms-of-service'
termsOfServiceAgree = 'yes'
}
}
var isCiServer = System.getenv().containsKey("CI")
var gradleCacheUsername= System.getenv("GRADLE_CACHE_USERNAME")
var gradleCachePassword = System.getenv("GRADLE_CACHE_PASSWORD")
var gradleCacheAuthorized =
!(gradleCacheUsername?.isEmpty() ?: false) && !(gradleCachePassword?.isEmpty() ?: false)
buildCache {
remote(HttpBuildCache) {
url = uri("https://cache.gradle.hedera.svcs.eng.swirldslabs.io/cache/")
push = isCiServer && gradleCacheAuthorized
useExpectContinue = true
enabled = !gradle.startParameter.offline
if (isCiServer && gradleCacheAuthorized) {
credentials {
username = gradleCacheUsername
password = gradleCachePassword
}
}
}
}