-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
78 lines (67 loc) · 2.24 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
70
71
72
73
74
75
76
77
78
@file:Suppress("PropertyName")
import kotlinx.validation.ExperimentalBCVApi
import org.jetbrains.dokka.base.DokkaBase
import org.jetbrains.dokka.base.DokkaBaseConfiguration
import java.time.LocalDate
plugins {
alias(libs.plugins.deteKT)
alias(libs.plugins.dokka)
alias(libs.plugins.ktlinter)
alias(libs.plugins.kotlin.binvalid)
alias(libs.plugins.kover)
id("publish")
}
group = "eu.vendeli.re.this"
version = System.getenv("libVersion") ?: "dev"
repositories {
mavenCentral()
}
configureKotlin {
sourceSets {
commonMain.dependencies {
implementation(libs.ktor.network)
implementation(libs.kotlinx.io.core)
api(libs.ktor.network.tls)
api(libs.bignum)
api(libs.coroutines.core)
api(libs.kotlinx.datetime)
}
jvmTest.dependencies {
implementation(libs.kotlin.reflect)
implementation(libs.test.kotest.junit5)
implementation(libs.test.kotest.assertions)
implementation(libs.logback)
implementation("com.redis:testcontainers-redis:1.7.0") {
exclude("commons-io", "commons-io")
exclude("org.apache.commons", "commons-compress")
exclude("com.fasterxml.woodstox", "woodstox-core")
}
implementation("commons-io:commons-io:2.17.0")
implementation("org.apache.commons:commons-compress:1.27.1")
implementation("com.fasterxml.woodstox:woodstox-core:7.0.0")
}
}
}
buildscript {
dependencies.classpath(libs.dokka.base)
}
tasks {
withType<Test> { useJUnitPlatform() }
dokkaHtml.configure {
outputDirectory = layout.buildDirectory.asFile.orNull?.resolve("dokka")
dokkaSourceSets {
collectionSchema.elements.forEach { _ -> moduleName = "re.this" }
}
pluginConfiguration<DokkaBase, DokkaBaseConfiguration> {
customAssets = listOf(rootDir.resolve("assets/logo-icon.svg"))
footerMessage = "© ${LocalDate.now().year} Vendelieu"
}
}
}
@OptIn(ExperimentalBCVApi::class)
apiValidation.klib.enabled = true
detekt {
buildUponDefaultConfig = true
allRules = false
config.from(files("$rootDir/detekt.yml"))
}