home-assistant-android/settings.gradle.kts
Nelson Osacky 28152b6f6c
Add Gradle Build Scans (#1050)
* Add Gradle Build Scans

To discover insights in to which dependencies are pulling in older versions of kotlin.
For example:
https://scans.gradle.com/s/l3vm2auntthac/dependencies?dependencies=reflect&expandAll&focusedDependency=WzAsMyw3MzcsWzAsMCxbMV1dXQ&focusedDependencyIncomingPathsToggled=W1sxLDAsMV1d&focusedDependencyView=versions

* Only publish build scans on CI.
2020-10-16 07:28:41 -04:00

25 lines
670 B
Plaintext

import org.gradle.kotlin.dsl.support.serviceOf
include(":common", ":app")
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
}
}