-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
59 lines (48 loc) · 1.34 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.jetbrains.kotlin.jvm") version "2.1.0"
id("java-library")
id("org.jetbrains.dokka") version "1.9.20"
id("org.jlleitschuh.gradle.ktlint") version "12.1.2"
id("jacoco")
id("idea")
id("signing")
id("maven-publish")
id("io.github.gradle-nexus.publish-plugin") version "2.0.0"
}
apply(from = "unitTest.gradle")
apply(from = "release.gradle")
group = "tech.relaycorp"
repositories {
mavenCentral()
}
dependencies {
val junit5Version = "5.11.3"
testImplementation("org.junit.jupiter:junit-jupiter:$junit5Version")
testImplementation("org.junit.jupiter:junit-jupiter-params:$junit5Version")
testImplementation("io.kotest:kotest-assertions-core-jvm:5.9.1")
testImplementation("com.nhaarman.mockitokotlin2:mockito-kotlin:2.2.0")
testImplementation("org.mockito:mockito-inline:5.2.0")
}
kotlin {
explicitApi()
jvmToolchain(17)
}
java {
withJavadocJar()
withSourcesJar()
}
tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_17.toString()
}
}
ktlint {
version.set("0.48.2")
}
tasks.withType<org.jetbrains.dokka.gradle.DokkaTask>().configureEach {
dokkaSourceSets.configureEach {
includes.from(project.files(), "api.md")
reportUndocumented.set(true)
}
}