-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
53 lines (42 loc) · 1.56 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
apply plugin: 'kotlin'
buildscript {
ext {
kotlin_version = "1.1.3-2"
jetty_version = "9.4.6.v20170531"
commons_fileupload_version = "1.3.3"
junit_version = "4.12"
result_version = '0.0.6'
json_version = '0.0.10'
}
repositories {
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.junit.platform:junit-platform-gradle-plugin:1.0.0-RC2"
}
}
repositories {
jcenter()
maven { url 'https://jitpack.io' }
}
dependencies {
testCompile "junit:junit:$junit_version"
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
compile "org.eclipse.jetty:jetty-server:$jetty_version"
compile "org.eclipse.jetty.websocket:websocket-server:$jetty_version"
compile "commons-fileupload:commons-fileupload:$commons_fileupload_version"
compile "com.danneu:kotlin-result:$result_version"
compile "com.danneu:kotlin-json-combinator:$json_version"
}
// Reminder to move the mime-db file into src/main/resources so that it gets bundled.
// TODO: Figure out how to configure it so that just node_modules/mime-db/db.json
// is included as a resource, or any other way to configure it so that I
// don't have to remember to copy it to src/main/resources every time it changes.
task copyTask(type: Copy) {
from 'node_modules/mime-db/'
include 'db.json'
into 'src/main/resources/mime-db'
doLast { println("mime-db copied") }
}