mirror of
https://github.com/home-assistant/android
synced 2024-09-06 17:23:32 +00:00
![Justin Bassett](/assets/img/avatar_default.png)
* First attempt at a new release model. * Fix bad syntax * Bump year and month with another job * Use the plugin's version in apps. * Make sure to generate the pre release weekly. * Review Comments.
42 lines
1.2 KiB
Plaintext
42 lines
1.2 KiB
Plaintext
import org.gradle.kotlin.dsl.support.serviceOf
|
|
|
|
include(":common", ":app", ":wear", ":automotive")
|
|
|
|
rootProject.name = "home-assistant-android"
|
|
|
|
plugins {
|
|
id("com.gradle.enterprise").version("3.7")
|
|
id("org.ajoberstar.reckon.settings").version("0.18.0")
|
|
}
|
|
|
|
// 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
|
|
}
|
|
}
|
|
|
|
extensions.configure<org.ajoberstar.reckon.gradle.ReckonExtension> {
|
|
setDefaultInferredScope("patch")
|
|
stages("beta", "final")
|
|
setScopeCalc { java.util.Optional.of(org.ajoberstar.reckon.core.Scope.PATCH) }
|
|
setStageCalc(calcStageFromProp())
|
|
setTagWriter { it.toString() }
|
|
}
|
|
|
|
dependencyResolutionManagement {
|
|
repositories {
|
|
mavenCentral()
|
|
google()
|
|
maven("https://jitpack.io")
|
|
}
|
|
}
|