-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
51 lines (48 loc) · 1.71 KB
/
build.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
49
50
51
repositories {
maven { url = uri("https://plugins.gradle.org/m2/") }
mavenCentral()
gradlePluginPortal()
}
plugins {
id("com.zegreatrob.tools.tagger")
id("com.zegreatrob.tools.digger")
id("com.zegreatrob.tools.plugins.lint")
base
}
tagger {
releaseBranch = "main"
githubReleaseEnabled.set(true)
userName = "github-actions[bot]"
userEmail = "[email protected]"
}
tasks {
assemble {
dependsOn(provider { gradle.includedBuilds.map { it.task(":assemble") }.toList() })
}
release {
dependsOn(provider { gradle.includedBuild("command-line-tools").task(":release") })
dependsOn(provider { gradle.includedBuild("tools").task(":release") })
finalizedBy(currentContributionData)
}
check {
dependsOn(provider { gradle.includedBuilds.map { it.task(":check") }.toList() })
}
clean {
dependsOn(provider { gradle.includedBuilds.map { it.task(":clean") }.toList() })
}
create("versionCatalogUpdate") {
dependsOn(provider { gradle.includedBuilds.map { it.task(":versionCatalogUpdate") }.toList() })
}
register("formatKotlin") {
dependsOn(provider { gradle.includedBuilds.map { it.task(":formatKotlin") }.toList() })
}
val testBuilds = listOf(
gradle.includedBuild("tools"),
)
create<Copy>("collectResults") {
dependsOn(provider { (getTasksByName("collectResults", true) - this).toList() })
dependsOn(provider { testBuilds.map { it.task(":collectResults") } })
from(testBuilds.map { it.projectDir.resolve("build/test-output") })
into(rootProject.layout.buildDirectory.file("test-output/${project.path}".replace(":", "/")))
}
}