-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
75 lines (64 loc) · 1.98 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
73
74
75
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'
apply plugin: 'kotlin-kapt'
apply plugin: 'java'
sourceCompatibility = 1.8
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
group 'tidelevel'
version '0.0.1'
mainClassName = "com.tidelevel.ApplicationKt"
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()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
compile "io.ktor:ktor-server-tomcat:$ktor_version"
compile "ch.qos.logback:logback-classic:$logback_version"
compile "io.ktor:ktor-jackson:$ktor_version"
compile 'org.jsoup:jsoup:1.11.3'
compile 'com.google.dagger:dagger:2.17'
kapt 'com.google.dagger:dagger-compiler:2.17'
annotationProcessor 'com.google.dagger:dagger-compiler:2.17'
testCompile "io.ktor:ktor-server-tests:$ktor_version"
testCompile 'junit:junit:4.12'
testCompile "com.nhaarman.mockitokotlin2:mockito-kotlin:2.1.0"
testCompile group: 'com.jayway.jsonpath', name: 'json-path', version: '2.4.0'
testCompile group: 'commons-io', name: 'commons-io', version: '2.6'
testCompile group: 'org.hamcrest', name: 'hamcrest-all', version: '1.3'
}
shadowJar {
manifest {
attributes 'Main-Class': mainClassName
}
}
tasks.withType(Test) {
testLogging {
exceptionFormat "full"
events "started", "skipped", "passed", "failed"
showStandardStreams true
}
}
task stage(dependsOn: ['build', 'clean'])
build.mustRunAfter clean