forked from Flank/flank
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.gradle.kts
40 lines (35 loc) · 984 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
33
34
35
36
37
38
39
40
import java.io.ByteArrayOutputStream
import org.gradle.kotlin.dsl.support.serviceOf
rootProject.name = "flank"
include(
":test_runner",
":firebase_apis:test_api",
":flank-scripts",
":integration_tests",
"samples:gradle-export-api",
"test_projects:android",
":common"
)
plugins {
id("com.gradle.enterprise") version "3.5"
}
@Suppress("UnstableApiUsage")
val isCI: Boolean = serviceOf<ProviderFactory>()
.environmentVariable("CI")
.forUseAtConfigurationTime().map { it == "true" }
.getOrElse(false)
gradleEnterprise {
buildScan {
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
publishAlwaysIf(isCI)
background {
val os = ByteArrayOutputStream()
exec {
commandLine("git", "rev-parse", "--verify", "HEAD")
standardOutput = os
}
value("Git Commit ID", os.toString())
}
}
}