2020-10-16 11:28:41 +00:00
|
|
|
import org.gradle.kotlin.dsl.support.serviceOf
|
|
|
|
|
2020-12-23 03:58:30 +00:00
|
|
|
include(":common", ":app", ":wearos_app")
|
2020-10-11 17:38:46 +00:00
|
|
|
|
|
|
|
rootProject.name = "home-assistant-android"
|
2020-10-16 11:28:41 +00:00
|
|
|
|
|
|
|
plugins {
|
|
|
|
id("com.gradle.enterprise").version("3.4.1")
|
|
|
|
}
|
|
|
|
|
|
|
|
// It should be easier to read an environment variable here once github.com/gradle/configuration-cache/issues/211 is resolved.
|
|
|
|
val isCI = serviceOf<ProviderFactory>()
|
|
|
|
.environmentVariable("CI")
|
|
|
|
.forUseAtConfigurationTime().map { it == "true" }
|
|
|
|
.getOrElse(false)
|
|
|
|
|
|
|
|
gradleEnterprise {
|
|
|
|
buildScan {
|
|
|
|
termsOfServiceUrl = "https://gradle.com/terms-of-service"
|
|
|
|
termsOfServiceAgree = "yes"
|
|
|
|
publishAlwaysIf(isCI)
|
|
|
|
isUploadInBackground = !isCI
|
|
|
|
}
|
|
|
|
}
|