-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
59 lines (50 loc) · 1.77 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
plugins {
kotlin("jvm") version "1.6.10"
kotlin("plugin.serialization") version "1.6.10"
id("org.jlleitschuh.gradle.ktlint") version "10.2.1"
application
}
group = "io.github.warriorzz.redirekt"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
maven("https://oss.sonatype.org/content/repositories/snapshots")
maven("https://schlaubi.jfrog.io/artifactory/envconf/")
}
dependencies {
implementation(platform("io.ktor:ktor-bom:1.6.8"))
implementation("io.ktor", "ktor-client-cio")
implementation("io.ktor", "ktor-client-core")
implementation("io.ktor", "ktor-client-serialization")
implementation("io.ktor", "ktor-server-core")
implementation("io.ktor", "ktor-server-cio")
implementation("io.ktor", "ktor-freemarker")
implementation("io.ktor", "ktor-auth")
implementation("io.ktor", "ktor-server-sessions")
implementation("org.jetbrains", "markdown", "0.2.4")
implementation("dev.schlaubi", "envconf", "1.1")
implementation("io.github.microutils", "kotlin-logging", "1.12.5")
implementation("org.slf4j", "slf4j-simple", "1.7.31")
implementation("org.litote.kmongo", "kmongo-coroutine-serialization", "4.2.7")
}
application {
mainClass.set("io.github.warriorzz.redirekt.LauncherKt")
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
jvmTarget = "11"
freeCompilerArgs = freeCompilerArgs + "-Xopt-in=kotlin.RequiresOptIn"
}
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
ktlint {
verbose.set(true)
filter {
disabledRules.add("no-wildcard-imports")
disabledRules.add("no-multi-spaces")
disabledRules.add("indent")
exclude("**/build/**")
}
}