-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
51 lines (42 loc) · 1.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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
val kotlinLanguageVersion: String by project
val kotestVersion: String by project
val kotlinTest: String by project
val kotlinxSerialization: String by project
application {
mainClass.set("Mainkt")
}
plugins {
application
kotlin("jvm") version "1.7.0"
kotlin("plugin.serialization") version "1.6.10"
}
repositories {
mavenCentral()
}
dependencies {
// Applications dependencies
implementation(kotlin("stdlib", kotlinLanguageVersion))
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json-jvm:$kotlinxSerialization")
// test dependencies
testImplementation(kotlin("test", kotlinTest))
testImplementation(kotlin("test-common", kotlinTest))
testImplementation(kotlin("test-annotations-common", kotlinTest))
}
val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions {
jvmTarget = "16"
}
val compileTestKotlin: KotlinCompile by tasks
compileTestKotlin.kotlinOptions {
jvmTarget = "16"
}
tasks.jar {
manifest {
attributes["Main-Class"] = "MainKt"
}
configurations["compileClasspath"].forEach { file: File ->
from(zipTree(file.absoluteFile))
}
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}