-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
39 lines (31 loc) · 845 Bytes
/
build.gradle
File metadata and controls
39 lines (31 loc) · 845 Bytes
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
group 'de.techdev.example'
version '1.0'
buildscript {
ext.kotlin_version = '1.1.2-2'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: 'kotlin'
repositories {
mavenCentral()
}
task fatJar(type: Jar) {
baseName = project.name + '-fat'
from { configurations.runtime.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
manifest {
attributes 'Main-Class': 'de.techdev.example.SparkExampleKt'
}
}
build.dependsOn fatJar
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
compile 'com.sparkjava:spark-core:2.5.5'
compile 'org.slf4j:slf4j-simple:1.7.25'
compile 'com.h2database:h2:1.4.195'
compile 'com.google.code.gson:gson:2.8.0'
}