-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
66 lines (49 loc) · 1.65 KB
/
build.gradle.kts
File metadata and controls
66 lines (49 loc) · 1.65 KB
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
val kotlin_version: String by project
val logback_version: String by project
plugins {
java // 确保应用了 Java 插件
kotlin("jvm") version "2.2.0"
id("io.ktor.plugin") version "3.2.3"
kotlin("plugin.serialization") version "2.2.0"
}
val projectVersion = "2.0.11"
group = "com.donut.mixfilecli"
version = projectVersion
application {
mainClass.set("com.donut.mixfilecli.ApplicationKt")
val isDevelopment: Boolean = project.ext.has("development")
applicationDefaultJvmArgs = listOf("-Dio.ktor.development=$isDevelopment")
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_1_8)
}
}
repositories {
maven("https://jitpack.io")
mavenCentral()
mavenLocal()
}
ktor {
fatJar {
archiveFileName.set("mixfile-cli-${version}.jar")
}
}
dependencies {
implementation("com.charleskorn.kaml:kaml:0.79.0")
implementation("com.github.InvertGeek:mixfile-core:2.0.11")
implementation("ch.qos.logback:logback-classic:1.3.15")
testImplementation("io.ktor:ktor-server-test-host")
testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.9.0")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.9.0")
// implementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.9.0")
}