generated from Kantis/kotlin-template
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsettings.gradle.kts
43 lines (32 loc) · 1.12 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
rootProject.name = "ks3"
plugins {
id("com.gradle.enterprise") version "3.19"
}
apply(from = "build-logic/repositories.gradle.kts")
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
enableFeaturePreview("STABLE_CONFIGURATION_CACHE")
includeBuild("build-logic")
include(
":ks3-jdk",
":ks3-standard",
":ks3-test",
":ks3-core",
)
develocity {
buildScan {
val isCI = providers.environmentVariable("CI").orNull.toBoolean()
tag(if (isCI) "CI" else "local")
tag(providers.systemProperty("os.name").orNull)
tag(providers.systemProperty("os.arch").orNull)
if (isCI) {
// only automatically enable build scan on CI
termsOfUseUrl = "https://gradle.com/terms-of-service"
termsOfUseAgree = "yes"
uploadInBackground.set(false)
val ghServer = providers.environmentVariable("GITHUB_SERVER_URL").orNull
val ghRepo = providers.environmentVariable("GITHUB_REPOSITORY").orNull
val giRunId = providers.environmentVariable("GITHUB_RUN_ID").orNull
link("GitHub Workflow run", "$ghServer/$ghRepo/actions/runs/$giRunId")
}
}
}