-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
69 lines (56 loc) · 2.24 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
buildscript {
repositories {
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'
group 'Users'
version '0.0.1'
mainClassName = "io.ktor.server.netty.EngineMain"
sourceSets {
main.kotlin.srcDirs = main.java.srcDirs = ['src']
test.kotlin.srcDirs = test.java.srcDirs = ['test']
main.resources.srcDirs = ['resources']
test.resources.srcDirs = ['testresources']
}
repositories {
mavenLocal()
jcenter()
maven { url 'https://kotlin.bintray.com/ktor' }
maven { url 'https://repo.spring.io/milestone' }
maven { url "https://dl.bintray.com/kotlin/exposed" }
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
compile "io.ktor:ktor-server-netty:$ktor_version"
compile "ch.qos.logback:logback-classic:$logback_version"
compile "io.ktor:ktor-server-core:$ktor_version"
compile "io.ktor:ktor-jackson:$ktor_version"
compile group: 'org.jetbrains.exposed', name: 'exposed', version: '0.14.4'
compile group: 'com.zaxxer', name: 'HikariCP', version: '3.2.0'
compile "io.ktor:ktor-html-builder:$ktor_version"
implementation "io.ktor:ktor-auth:$ktor_version"
implementation "io.ktor:ktor-locations:$ktor_version"
implementation "io.ktor:ktor-client-apache:$ktor_version"
runtime group: 'org.postgresql', name: 'postgresql', version: '42.1.4'
testCompile "io.ktor:ktor-server-tests:$ktor_version"
testCompile "org.mockito:mockito-core:2.28.2"
testCompile group: 'org.assertj', name: 'assertj-core', version: '3.12.0'
testImplementation "io.mockk:mockk:1.9.3"
testImplementation "com.nhaarman.mockitokotlin2:mockito-kotlin:2.1.0"
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.3.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.3.1'
}
mainClassName = 'io.ktor.server.netty.EngineMain' // Starting with 1.0.0-beta-3
// This task will generate your fat JAR and put it in the ./build/libs/ directory
shadowJar {
manifest {
attributes 'Main-Class': mainClassName
}
}