-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
43 lines (35 loc) · 1.06 KB
/
build.gradle.kts
File metadata and controls
43 lines (35 loc) · 1.06 KB
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
@file:Suppress("UnstableApiUsage")
plugins {
base
`maven-publish`
alias(libs.plugins.kotlin.jvm) apply false
alias(libs.plugins.kotlin.multiplatform) apply false
alias(libs.plugins.android.application) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.android.multiplatform) apply false
alias(libs.plugins.publicationsReport)
`jacoco-report-aggregation`
}
dependencies {
//noinspection UseTomlInstead
jacocoAggregation("com.github.gmazzo.buildconfig:plugin")
}
val kmpOnly: String? by project
val pluginBuild = gradle.includedBuild("plugin")
val jacocoTestReport by reporting.reports.creating(JacocoCoverageReport::class) {
testSuiteName = pluginBuild.task(":test").name
}
if (kmpOnly == null) {
tasks.build {
dependsOn(pluginBuild.task(":$name"))
}
tasks.check {
dependsOn(jacocoTestReport.reportTask, pluginBuild.task(":$name"))
}
}
tasks.publish {
dependsOn(pluginBuild.task(":$name"))
}
tasks.publishToMavenLocal {
dependsOn(pluginBuild.task(":$name"))
}