-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
69 lines (61 loc) · 1.8 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
57
58
59
60
61
62
63
64
65
66
67
68
69
import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin
import org.jetbrains.kotlin.gradle.targets.js.yarn.YarnRootExtension
import org.jetbrains.kotlin.gradle.targets.native.tasks.KotlinNativeSimulatorTest
@Suppress("DSL_SCOPE_VIOLATION")
plugins {
alias(libs.plugins.serialization) apply false
alias(libs.plugins.dokka)
alias(libs.plugins.spotless)
alias(libs.plugins.kover)
alias(libs.plugins.binaryCompat)
alias(libs.plugins.completeKotlin)
alias(libs.plugins.mavenPublish) apply false
}
buildscript {
repositories {
gradlePluginPortal()
mavenCentral()
google()
}
dependencies {
classpath(libs.agp)
classpath(libs.atomicfu.plugin) {
exclude("org.jetbrains.kotlin", "kotlin-gradle-plugin-api")
}
}
}
allprojects {
plugins.withType<NodeJsRootPlugin> {
the<YarnRootExtension>().lockFileDirectory = rootDir.resolve("gradle/kotlin-js-store")
}
repositories {
mavenCentral()
google()
}
}
extensions.configure<kotlinx.kover.api.KoverMergedConfig> {
enable()
filters {
classes {
excludes += "objectstore.*.BuildConfig"
}
}
}
System.getenv("GITHUB_REF")?.let { ref ->
if (ref.startsWith("refs/tags/v")) {
version = ref.substringAfterLast("refs/tags/v")
}
}
subprojects {
apply(plugin = "org.jetbrains.kotlinx.kover")
kover {}
apply(plugin = "com.diffplug.spotless")
configure<com.diffplug.gradle.spotless.SpotlessExtension> {
kotlin {
target("**/**.kt")
licenseHeaderFile(rootDir.resolve("licenseHeader.txt"))
ktlint(libs.versions.ktlint.get())
.editorConfigOverride(mapOf("disabled_rules" to "no-wildcard-imports,no-unused-imports"))
}
}
}