mirror of
https://github.com/home-assistant/android
synced 2024-11-05 18:28:42 +00:00
28152b6f6c
* 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.
24 lines
670 B
Text
24 lines
670 B
Text
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
|
|
}
|
|
}
|