home-assistant-android/settings.gradle.kts
Justin Bassett 3b614548d6
Feature/wear publishing (#1264)
* Cleanup .gitignore

* Move to just wear rather than wearos_app.

* Try to use lots of wildcards for debug pr build archiving.
2020-12-27 22:04:37 -05:00

25 lines
679 B
Plaintext

import org.gradle.kotlin.dsl.support.serviceOf
include(":common", ":app", ":wear")
rootProject.name = "home-assistant-android"
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
}
}