-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
56 lines (48 loc) · 1.6 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
52
53
54
55
56
import com.diffplug.gradle.spotless.SpotlessApply
import com.diffplug.gradle.spotless.SpotlessExtension
import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin
import org.jetbrains.kotlin.gradle.targets.js.yarn.YarnRootExtension
plugins {
alias(libs.plugins.multiplatform) apply false
alias(libs.plugins.kover)
alias(libs.plugins.binaryCompat)
alias(libs.plugins.dokka)
alias(libs.plugins.kotlinter) apply false
alias(libs.plugins.spotless)
alias(libs.plugins.mavenPublish) apply false
alias(libs.plugins.downloadPlugin) apply false
id("com.louiscad.complete-kotlin") version "1.1.0"
}
allprojects {
plugins.withType<NodeJsRootPlugin> {
the<YarnRootExtension>().lockFileDirectory = rootDir.resolve("gradle/kotlin-js-store")
}
repositories {
mavenCentral()
}
}
subprojects {
apply(plugin = "org.jetbrains.kotlinx.kover")
configure<kotlinx.kover.gradle.plugin.dsl.KoverProjectExtension> {
}
rootProject.dependencies.add("kover", project(path))
apply(plugin = "com.diffplug.spotless")
configure<SpotlessExtension> {
kotlin {
target("**/**.kt")
licenseHeaderFile(rootDir.resolve("licenseHeader.txt"))
}
}
apply(plugin = "org.jmailen.kotlinter")
configure<org.jmailen.gradle.kotlinter.KotlinterExtension> {
}
tasks.withType<SpotlessApply> {
dependsOn("formatKotlin")
}
apply(plugin = "org.jetbrains.dokka")
}
System.getenv("GITHUB_REF")?.let { ref ->
if (ref.startsWith("refs/tags/v")) {
version = ref.substringAfterLast("refs/tags/v")
}
}