-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathsettings.gradle.kts
More file actions
37 lines (31 loc) · 894 Bytes
/
settings.gradle.kts
File metadata and controls
37 lines (31 loc) · 894 Bytes
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.develocity") version "4.3.2"
id("com.gradle.common-custom-user-data-gradle-plugin") version "2.4.0"
}
rootProject.name = "testng-engine"
develocity {
buildScan {
val isCiServer = System.getenv("CI") != null
server = "https://ge.junit.org"
uploadInBackground = !isCiServer
obfuscation {
if (isCiServer) {
username { "github" }
} else {
hostname { null }
ipAddresses { emptyList() }
}
}
publishing.onlyIf { it.isAuthenticated }
}
}
buildCache {
val isCiServer = System.getenv("CI") != null
local {
isEnabled = !isCiServer
}
remote(develocity.buildCache) {
val authenticated = !System.getenv("DEVELOCITY_ACCESS_KEY").isNullOrEmpty()
isPush = isCiServer && authenticated
}
}