-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
66 lines (57 loc) · 1.49 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
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
plugins {
alias(libs.plugins.kotlin.jvm)
alias(libs.plugins.ktlint)
alias(libs.plugins.maven.publish)
alias(libs.plugins.java.test.fixtures)
}
group = "com.github.project-coco"
version = "1.0.2-RELEASE"
repositories {
mavenCentral()
}
val deps = libs
allprojects {
apply {
plugin("java")
plugin(
deps.plugins.kotlin.jvm
.get()
.pluginId,
)
plugin(
deps.plugins.maven.publish
.get()
.pluginId,
)
plugin("java-test-fixtures")
}
java.sourceCompatibility = JavaVersion.VERSION_21
java.targetCompatibility = JavaVersion.VERSION_21
java.toolchain.languageVersion.set(JavaLanguageVersion.of(21))
repositories {
mavenCentral()
}
dependencies {
testImplementation(deps.bundles.kotest)
testImplementation(deps.mockk)
testImplementation(kotlin("test"))
testFixturesImplementation(deps.bundles.kotest)
}
task<Jar>("sourcesJar") {
enabled = true
archiveClassifier.set("sources")
from(sourceSets.getByName("main").allSource)
}
tasks {
test {
useJUnitPlatform()
}
compileKotlin {
compilerOptions {
freeCompilerArgs = listOf("-Xjsr305=strict", "-Xcontext-receivers")
jvmTarget.set(JvmTarget.JVM_21)
}
}
}
}