home-assistant-android/settings.gradle.kts
Nelson Osacky 4fed595a3d
Update to Gradle 6.8 (#1300)
This takes advantage of the new central declaration of repositories feature.
2021-01-19 10:36:38 -05:00

33 lines
798 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
}
}
dependencyResolutionManagement {
repositories {
mavenCentral()
google()
jcenter()
}
}