-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
63 lines (53 loc) · 1.4 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
import org.gradle.api.file.DuplicatesStrategy.INCLUDE
import org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_21
plugins {
idea
id("com.github.ben-manes.versions") version "0.51.0"
kotlin("jvm") version "2.0.21"
}
group = "ru.timakden"
version = "1.0"
repositories {
mavenCentral()
}
dependencies {
implementation(kotlin("reflect"))
implementation(kotlin("stdlib"))
implementation("org.tinylog:tinylog-api-kotlin:2.7.0")
implementation("org.tinylog:tinylog-impl:2.7.0")
testImplementation(platform("io.kotest:kotest-bom:5.9.1"))
testImplementation("io.kotest:kotest-assertions-core")
testImplementation("io.kotest:kotest-framework-datatest")
testImplementation("io.kotest:kotest-property")
testImplementation("io.kotest:kotest-runner-junit5")
}
kotlin {
jvmToolchain(21)
}
tasks {
compileKotlin {
compilerOptions {
freeCompilerArgs.add("-Xjsr305=strict")
jvmTarget.set(JVM_21)
}
}
jar {
manifest {
attributes("Main-Class" to "ru.timakden.chess.MainKt")
}
from(configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) })
duplicatesStrategy = INCLUDE
}
test {
useJUnitPlatform()
}
wrapper {
gradleVersion = "8.11.1"
}
}
idea {
module {
isDownloadJavadoc = true
isDownloadSources = true
}
}