This repository was archived by the owner on Nov 20, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
57 lines (46 loc) · 1.46 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
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.3.11'
id 'io.gitlab.arturbosch.detekt' version '1.0.0-RC12'
}
version '1.0-SNAPSHOT'
repositories {
jcenter()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.11"
compile "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.1.0"
compile "com.sparkjava:spark-core:2.7.2"
compile "org.slf4j:slf4j-simple:1.7.25"
compile "com.auth0:java-jwt:3.4.1"
compile "com.typesafe:config:1.3.2"
compile "org.apache.kafka:kafka-clients:2.1.0"
testCompile "org.jetbrains.kotlin:kotlin-test:1.3.11"
testCompile "org.spekframework.spek2:spek-dsl-jvm:2.0.0-rc.1"
testRuntimeOnly "org.jetbrains.kotlin:kotlin-reflect:1.3.11"
testRuntimeOnly "org.spekframework.spek2:spek-runner-junit5:2.0.0-rc.1"
}
test {
useJUnitPlatform {
includeEngines "spek2"
}
}
detekt {
toolVersion = "1.0.0-RC12"
input = files("src/main/kotlin")
filters = ".*/resources/.*,.*/build/.*"
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
jar {
manifest {
attributes "Main-Class": "urban.memory.AppKt"
}
// This line of code recursively collects and copies all of a project's files
// and adds them to the JAR itself. One can extend this task, to skip certain
// files or particular types at will
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
}