forked from node-gradle/gradle-node-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.gradle.kts
32 lines (27 loc) · 945 Bytes
/
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
plugins {
id("com.gradle.enterprise") version("3.14.1")
id("com.gradle.common-custom-user-data-gradle-plugin") version("1.11.1")
}
val isCI = System.getenv().containsKey("CI")
val isPR = isCI && System.getenv().containsKey("GRADLE_ENTERPRISE_ACCESS_KEY")
val publishAlwaysIf = System.getProperties()["user.name"] == "deepy"
gradleEnterprise {
buildScan {
if (publishAlwaysIf || isPR) {
server = "https://alexandernordlund.gradle-enterprise.cloud/"
}
termsOfServiceUrl = "https://gradle.com/terms-of-service"
if (isCI) {
termsOfServiceAgree = "yes"
}
publishAlwaysIf(publishAlwaysIf)
capture {
isTaskInputFiles = publishAlwaysIf || isPR
}
isUploadInBackground = !isCI
obfuscation {
ipAddresses { addresses -> addresses.map { _ -> "0.0.0.0"} }
}
}
}
rootProject.name = "gradle-node-plugin"