-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
57 lines (45 loc) · 1.41 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.10'
id 'com.github.johnrengelman.shadow' version '2.0.4'
}
group 'dropwizard'
version '1.0-SNAPSHOT'
apply plugin: 'application'
repositories {
mavenCentral()
jcenter()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
compile "org.jetbrains.kotlin:kotlin-reflect"
compile "io.dropwizard:dropwizard-core:1.3.5"
testCompile "io.dropwizard:dropwizard-testing:1.3.5"
testCompile "io.dropwizard:dropwizard-client:1.3.7"
testCompile "com.fasterxml.jackson.module:jackson-module-kotlin:2.9.4.1"
testCompile "org.mockito:mockito-core:2.23.0"
testCompile "junit:junit:4.12"
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
// ## for Application.run
mainClassName = 'KHelloWorldKt'
run {
args = ['server', 'config.yml']
}
shadowJar {
mergeServiceFiles()
exclude 'META-INF/*.DSA', 'META-INF/*.RSA', 'META-INF/*.SF'
manifest {
attributes 'Implementation-Title': rootProject.name
attributes 'Implementation-Version': rootProject.version
attributes 'Implementation-Vendor-Id': rootProject.group
attributes 'Built-By': InetAddress.localHost.hostName
attributes 'Created-By': 'Gradle ' + gradle.gradleVersion
attributes 'Main-Class': 'KHelloWorldKt'
}
archiveName 'hello-dropwizard.jar'
}