-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
42 lines (35 loc) · 1.42 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
import org.jetbrains.kotlin.gradle.targets.js.ir.KotlinJsIrLink
import org.jetbrains.kotlin.gradle.tasks.KotlinNativeCompile
import org.jetbrains.kotlin.gradle.tasks.KotlinNativeLink
plugins {
base
`maven-publish`
alias(libs.plugins.android.application) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.kotlin.jvm) apply false
alias(libs.plugins.kotlin.multiplatform) apply false
alias(libs.plugins.publicationsReport)
id("io.github.gmazzo.codeowners.jvm") apply false
id("io.github.gmazzo.codeowners.kotlin") apply false
}
val pluginsBuild = gradle.includedBuild("plugins")
tasks.build {
dependsOn(pluginsBuild.task(":$name"))
}
tasks.check {
dependsOn(pluginsBuild.task(":$name"))
}
tasks.publish {
dependsOn(pluginsBuild.task(":$name"))
}
tasks.publishToMavenLocal {
dependsOn(pluginsBuild.task(":$name"))
}
// TODO ignores configuration cache known incompatibilities
allprojects {
tasks.withType<KotlinJsIrLink> { notCompatibleWithConfigurationCache("uses Task.project") }
tasks.withType<KotlinNativeCompile> { notCompatibleWithConfigurationCache("uses Task.project") }
tasks.withType<KotlinNativeLink> { notCompatibleWithConfigurationCache("uses Task.project") }
}
tasks.matching { it.name == "commonizeNativeDistribution" }.configureEach { notCompatibleWithConfigurationCache("uses Task.project") }