-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
42 lines (35 loc) · 1.18 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.6.0"
kotlin("plugin.serialization") version "1.6.0"
id("com.github.johnrengelman.shadow") version "7.1.0"
}
allprojects {
apply(plugin = "org.jetbrains.kotlin.jvm")
apply(plugin = "org.jetbrains.kotlin.plugin.serialization")
apply(plugin = "com.github.johnrengelman.shadow")
tasks.shadowJar {
minimize()
archiveFileName.set("liteware-${archiveFileName.get()}")
from(rootProject.fileTree("licenses"))
}
repositories {
mavenCentral()
}
dependencies {
testImplementation(kotlin("test"))
api(kotlin("reflect"))
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:${Versioning.Serialization}")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:${Versioning.Coroutines}")
implementation("org.jetbrains.kotlinx:kotlinx-datetime:${Versioning.DateTime}")
}
tasks.test {
useJUnitPlatform()
}
tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "16"
freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
}
}
}