-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
72 lines (60 loc) · 3.1 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
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.3.61'
id "com.github.ben-manes.versions" version "0.27.0"
}
group 'org.athenian'
version '1.0-SNAPSHOT'
def coroutinesVersion = '1.3.3'
def ktorVersion = '1.2.6'
def logbackVersion = '1.2.3'
def retrofitVersion = '2.7.0'
def serializationVersion = '0.13.0'
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()
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
implementation "com.squareup.retrofit2:retrofit:${retrofitVersion}"
implementation "com.squareup.retrofit2:converter-gson:${retrofitVersion}"
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-client-core:${ktorVersion}"
implementation "io.ktor:ktor-client-cio:${ktorVersion}"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:${coroutinesVersion}"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:${coroutinesVersion}"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-slf4j:${coroutinesVersion}"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-debug:${coroutinesVersion}"
implementation "ch.qos.logback:logback-classic:${logbackVersion}"
implementation "org.slf4j:jul-to-slf4j:${slf4jVersion}"
}
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']
}
}