-
Notifications
You must be signed in to change notification settings - Fork 42
/
settings.gradle.kts
48 lines (41 loc) · 1.41 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
42
43
44
45
46
47
48
rootProject.name = "Podcast-Server"
plugins {
id("com.gradle.develocity") version("3.17.6")
id("com.gradle.common-custom-user-data-gradle-plugin") version "2.0.2"
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}
val env: Map<String, String> = System.getenv()
val isCI = env["CI"].toBoolean()
val hasDV = env["DEVELOCITY_ENABLED"].toBoolean()
buildCache {
local { isEnabled = !isCI }
remote(develocity.buildCache) {
isEnabled = isCI || hasDV
isPush = isCI
}
}
develocity {
server = env["DEVELOCITY_SERVER"] ?: "https://no.ge.local"
buildScan {
publishing.onlyIf { hasDV || isCI }
capture {
fileFingerprints = true
buildLogging = true
testLogging = true
}
uploadInBackground = !isCI
if(isCI) {
tag(env["CI_COMMIT_REF_NAME"])
value("Pipeline", env["CI_PIPELINE_ID"])
value("Job Image", env["CI_JOB_IMAGE"])
link("Source", "https://gitlab.com/davinkevin/Podcast-Server/tree/${env["CI_COMMIT_REF_NAME"]}")
}
}
}
include("backend-lib-database")
include("backend-lib-youtubedl")
include("backend")
include("frontend-angular")
include("frontend-angularjs")
includeBuild("build-logic/build-plugin-database") { name = "build-plugin-database" }
includeBuild("build-logic/build-plugin-docker-images") { name = "build-plugin-docker-images" }