generated from JetBrains/compose-multiplatform-template
-
Notifications
You must be signed in to change notification settings - Fork 71
/
Copy pathbuild.gradle.kts
32 lines (29 loc) · 1.01 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
plugins {
// this is necessary to avoid the plugins to be loaded multiple times
// in each subproject's classloader
kotlin("multiplatform").apply(false)
kotlin("plugin.serialization").apply(false)
id("com.android.application").apply(false)
id("com.android.library").apply(false)
id("org.jetbrains.compose").apply(false)
id("org.jetbrains.dokka")
id("com.vanniktech.maven.publish") version "0.25.3" apply false
id("org.jlleitschuh.gradle.ktlint") version "11.6.1"
id("org.jetbrains.kotlin.plugin.atomicfu") version "1.9.20"
}
subprojects {
apply(plugin = "org.jlleitschuh.gradle.ktlint") // Version should be inherited from parent
// Optionally configure plugin
configure<org.jlleitschuh.gradle.ktlint.KtlintExtension> {
version.set("1.0.1")
filter {
exclude("**/generated/**")
include("**/kotlin/**")
}
}
}
tasks.register<Copy>("setUpGitHooks") {
group = "help"
from("$rootDir/.hooks")
into("$rootDir/.git/hooks")
}