-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
78 lines (64 loc) · 3.13 KB
/
build.gradle
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
67
68
69
70
71
72
73
74
75
76
77
78
plugins {
id 'application'
id 'org.jetbrains.kotlin.jvm' version '1.3.60'
id 'org.jetbrains.kotlin.plugin.serialization' version '1.3.60'
id "com.github.ben-manes.versions" version '0.27.0'
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
def serializationVersion = '0.13.0'
def ktorVersion = '1.2.5'
def utilsVersion = '1.1.8'
def loggingVersion = '1.7.8'
def logbackVersion = '1.2.3'
def slf4jVersion = '1.7.28'
repositories {
maven { url = "https://kotlin.bintray.com/kotlinx" }
maven { url = 'https://maven-central.storage-download.googleapis.com/repos/central/data/' }
jcenter()
maven { url = 'https://jitpack.io' }
}
dependencies {
implementation platform('org.jetbrains.kotlin:kotlin-bom')
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
implementation "org.jetbrains.kotlinx:kotlinx-serialization-runtime:${serializationVersion}"
implementation "io.ktor:ktor-server-core:${ktorVersion}"
implementation "io.ktor:ktor-server-cio:${ktorVersion}"
implementation "io.ktor:ktor-html-builder:${ktorVersion}"
implementation "io.ktor:ktor-serialization:${ktorVersion}"
implementation "com.github.pambrose.common-utils:ktor-client-utils:${utilsVersion}"
implementation "ch.qos.logback:logback-classic:${logbackVersion}"
implementation "org.slf4j:jul-to-slf4j:${slf4jVersion}"
implementation "io.github.microutils:kotlin-logging:${loggingVersion}"
testImplementation 'org.jetbrains.kotlin:kotlin-test'
testImplementation 'org.jetbrains.kotlin:kotlin-test-junit'
}
application {
mainClassName = 'org.athenian.AppKt'
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs += ['-Xuse-experimental=kotlin.time.ExperimentalTime',
'-Xuse-experimental=kotlinx.serialization.UnstableDefault',
'-Xuse-experimental=kotlin.ExperimentalUnsignedTypes',
'-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi',
'-Xuse-experimental=kotlinx.coroutines.InternalCoroutinesApi',
'-Xuse-experimental=io.ktor.util.KtorExperimentalAPI',
'-Xuse-experimental=kotlinx.serialization.ImplicitReflectionSerializer',
'-Xuse-experimental=kotlinx.serialization.UnstableDefault']
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs += ['-Xuse-experimental=kotlin.time.ExperimentalTime',
'-Xuse-experimental=kotlinx.serialization.UnstableDefault',
'-Xuse-experimental=kotlin.ExperimentalUnsignedTypes',
'-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi',
'-Xuse-experimental=kotlinx.coroutines.InternalCoroutinesApi',
'-Xuse-experimental=io.ktor.util.KtorExperimentalAPI',
'-Xuse-experimental=kotlinx.serialization.ImplicitReflectionSerializer',
'-Xuse-experimental=kotlinx.serialization.UnstableDefault']
}
}