-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
46 lines (36 loc) · 928 Bytes
/
Copy pathbuild.gradle
File metadata and controls
46 lines (36 loc) · 928 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
40
41
42
43
44
45
46
plugins {
id 'idea'
id 'application'
id 'org.jetbrains.kotlin.jvm' version '1.1.1'
//id 'org.jetbrains.kotlin.kapt' version '1.1.1'
}
version '0.0.1'
group 'daggerok'
def entry = 'daggerok.AppKt'
mainClassName = entry
jar {
manifest { attributes 'Main-Class': entry }
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
}
defaultTasks 'run'
ext {
kotlinVersion = '1.1.1'
sparkjavaVersion = '2.5.5'
}
repositories {
mavenCentral()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlinVersion",
"com.sparkjava:spark-core:$sparkjavaVersion",
"com.sparkjava:spark-template-handlebars:$sparkjavaVersion",
'org.slf4j:slf4j-simple:1.7.21',
'com.fasterxml.jackson.module:jackson-module-kotlin:2.8.7'
}
sourceSets {
main.kotlin.srcDirs += 'src'
//main.java.srcDirs += 'src/java'
}
kotlin {
experimental { coroutines 'enable' }
}