-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
57 lines (48 loc) · 1.32 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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.4'
}
}
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.3.70'
id 'application'
}
mainClassName = 'io.ktor.server.netty.EngineMain'
apply plugin: 'com.github.johnrengelman.shadow'
group 'org.setyongr'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
jcenter()
}
dependencies {
compile("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.70")
compile("org.postgresql:postgresql:42.2.2")
compile("org.jetbrains.exposed:exposed-core:0.20.1")
compile("org.jetbrains.exposed:exposed-dao:0.20.1")
compile("org.jetbrains.exposed:exposed-jdbc:0.20.1")
compile("org.slf4j:slf4j-simple:1.7.30")
compile("io.ktor:ktor-server-core:1.3.2")
compile("io.ktor:ktor-server-netty:1.3.2")
compile("io.ktor:ktor-jackson:1.3.2")
compile("io.ktor:ktor-client-core:1.3.2")
compile("io.ktor:ktor-client-okhttp:1.3.2")
compile("io.ktor:ktor-client-jackson:1.3.2")
testCompile group: 'junit', name: 'junit', version: '4.12'
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
shadowJar {
manifest {
attributes 'Main-Class': mainClassName
}
}