forked from home-assistant/android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle.kts
41 lines (34 loc) · 1.15 KB
/
settings.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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")
}
}