-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
62 lines (51 loc) · 1.69 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
group 'io.redutan'
version '0.1.3'
buildscript {
ext.kotlin_version = '1.1.3-2'
ext.rxkotlin_version = '2.1.0'
ext.ktor_version = '0.3.3'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: 'kotlin'
apply plugin: 'application'
sourceCompatibility = 1.8
repositories {
mavenCentral()
jcenter()
maven { url "https://dl.bintray.com/kotlin/kotlinx" }
maven { url "https://dl.bintray.com/kotlin/ktor" }
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
compile group: 'io.reactivex.rxjava2', name: 'rxkotlin', version: rxkotlin_version
compile "org.jetbrains.ktor:ktor-core:$ktor_version"
compile "org.jetbrains.ktor:ktor-websockets:$ktor_version"
compile group: 'com.google.code.gson', name: 'gson', version: '2.8.1'
compile group: 'org.slf4j', name: 'jul-to-slf4j', version: '1.7.25'
compile group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.3'
runtime "org.jetbrains.ktor:ktor-jetty:$ktor_version"
runtime "org.jetbrains.ktor:ktor-netty:$ktor_version"
testCompile group: 'org.jetbrains.kotlin', name: 'kotlin-test', version: kotlin_version
testCompile group: 'org.jetbrains.kotlin', name: 'kotlin-test-junit', version: kotlin_version
}
sourceSets {
main.resources.srcDirs += "src/main/resources"
test.resources.srcDirs += "src/test/resources"
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
kotlin {
experimental {
coroutines "enable"
}
}
mainClassName = 'org.jetbrains.ktor.netty.DevelopmentHost'