This repository was archived by the owner on Oct 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle.kts
55 lines (48 loc) · 1.58 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
plugins {
kotlin("jvm") version "1.6.21"
kotlin("plugin.serialization") version "1.6.21"
id("blue.starry.scriptextender") version "0.0.2"
id("com.github.johnrengelman.shadow") version "7.1.2"
}
repositories {
mavenCentral()
}
dependencies {
implementation("io.ktor:ktor-server-cio:1.6.8")
implementation("io.ktor:ktor-websockets:1.6.8")
implementation("io.ktor:ktor-serialization:1.6.8")
implementation("io.ktor:ktor-client-cio:1.6.8")
implementation("io.ktor:ktor-client-apache:1.6.8")
implementation("io.ktor:ktor-client-serialization:1.6.8")
implementation("io.ktor:ktor-client-logging:1.6.8")
implementation("com.charleskorn.kaml:kaml:0.45.0")
implementation("blue.starry:penicillin:6.2.3")
implementation("commons-codec:commons-codec:1.15")
implementation("org.jsoup:jsoup:1.15.1")
implementation("com.google.guava:guava:31.1-jre")
implementation("io.github.microutils:kotlin-logging:2.1.23")
implementation("ch.qos.logback:logback-classic:1.2.11")
}
kotlin {
target {
compilations.all {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_17.toString()
apiVersion = "1.6"
languageVersion = "1.6"
verbose = true
}
}
}
sourceSets.all {
languageSettings {
progressiveMode = true
optIn("kotlin.RequiresOptIn")
}
}
}
tasks.withType<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar> {
manifest {
attributes("Main-Class" to "blue.starry.saya.MainKt")
}
}