-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
68 lines (57 loc) · 1.52 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
buildscript {
ext {
kotlin_version = '1.2.50'
ktor_version = '0.9.2'
}
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.github.jengelman.gradle.plugins:shadow:2.0.4"
}
}
apply plugin: "com.github.johnrengelman.shadow"
apply plugin: 'kotlin'
apply plugin: 'application'
mainClassName = 'io.ktor.server.netty.DevelopmentEngine'
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven { url "http://dl.bintray.com/kotlin/ktor" }
maven { url "https://dl.bintray.com/kotlin/kotlinx" }
}
repositories {
mavenCentral()
}
configurations.all {
resolutionStrategy {
force 'org.hamcrest:hamcrest-core:1.3'
}
}
dependencies {
compile group: 'junit', name: 'junit', version: '4.12'
compile "io.ktor:ktor-auth-jwt:$ktor_version"
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
compile "io.ktor:ktor-server-netty:$ktor_version"
compile "io.ktor:ktor-auth:$ktor_version"
compile "io.ktor:ktor-gson:$ktor_version"
compile 'io.github.microutils:kotlin-logging:1.5.4'
compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.25'
testCompile "io.ktor:ktor-server-test-host:$ktor_version"
}
kotlin {
experimental {
coroutines "enable"
}
}
task wrapper(type: Wrapper) {
gradleVersion = '4.8'
}
shadowJar {
baseName = 'ktor-backend'
classifier = null
version = null
}