-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle.kts
41 lines (35 loc) · 1.26 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
import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin
import org.jetbrains.kotlin.gradle.targets.js.yarn.YarnRootExtension
@Suppress("DSL_SCOPE_VIOLATION")
plugins {
alias(libs.plugins.multiplatform) apply false
alias(libs.plugins.serialization) apply false
alias(libs.plugins.binaryCompat) apply false
alias(libs.plugins.poko) apply false
alias(libs.plugins.dokka)
alias(libs.plugins.spotless)
alias(libs.plugins.mavenPublish)
}
allprojects {
version = System.getenv("GITHUB_REF")?.substringAfter("refs/tags/v", version.toString()) ?: version
repositories {
mavenCentral()
}
plugins.withType<NodeJsRootPlugin> {
the<YarnRootExtension>().lockFileDirectory = rootDir.resolve("gradle/kotlin-js-store")
}
}
subprojects {
apply(plugin = "com.diffplug.spotless")
extensions.findByType<com.diffplug.gradle.spotless.SpotlessExtension>()?.apply {
kotlin {
target("**/**.kt")
ktlint(libs.versions.ktlint.get())
.setUseExperimental(true)
.editorConfigOverride(mapOf(
"enabled_rules" to "",
"disabled_rules" to "no-wildcard-imports,no-unused-imports,trailing-comma"
))
}
}
}