This repository has been archived by the owner on Apr 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
64 lines (51 loc) · 1.71 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
64
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven("https://dl.bintray.com/kotlin/kotlin-eap")
}
plugins {
kotlin("jvm") version "1.5.20"
kotlin("plugin.serialization") version "1.5.20"
application
id("com.github.johnrengelman.shadow") version "6.1.0"
}
fun kotlinx(id: String, version: String) = "org.jetbrains.kotlinx:kotlinx-$id:$version"
group = "net.mamoe"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
jcenter()
maven {
url = uri("https://dl.bintray.com/kotlin/ktor")
}
maven {
url = uri("https://dl.bintray.com/kotlin/kotlinx")
}
}
val serializationVersion = "1.2.1"
dependencies {
testImplementation(kotlin("test-junit"))
implementation("io.ktor:ktor-server-netty:1.6.0")
implementation("io.ktor:ktor-html-builder:1.6.0")
implementation("org.jetbrains.kotlinx:kotlinx-html-jvm:0.7.2")
implementation("com.github.davidmoten:subethasmtp:6.0.0")
implementation("tech.blueglacier:email-mime-parser:1.0.5")
//implementation("org.bouncycastle:bcprov-jdk15on:1.64")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.1.0-RC")
api(kotlinx("serialization-core", serializationVersion))
api(kotlinx("serialization-json", serializationVersion))
api("org.jsoup:jsoup:1.13.1")
api(project(":ksoup"))
api(project(":accountsjar"))
implementation("com.belerweb:pinyin4j:2.5.1")
}
tasks.withType<KotlinCompile>() {
kotlinOptions.jvmTarget = "1.8"
kotlinOptions.freeCompilerArgs += "-Xjvm-default=all"
kotlinOptions.freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
}
application {
mainClassName = "Starter"
}