-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
92 lines (79 loc) · 2.59 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
buildscript {
ext.kotlin_version = '1.0.6'
repositories {
jcenter()
maven { url "http://jcenter.bintray.com" }
}
dependencies {
classpath "io.ratpack:ratpack-gradle:1.4.0",
"com.github.jengelman.gradle.plugins:shadow:1.2.3",
"org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
if (!JavaVersion.current().java8Compatible) {
throw new IllegalStateException("Must be built with Java 8 or higher")
}
apply plugin: "io.ratpack.ratpack-java"
apply plugin: "com.github.johnrengelman.shadow"
apply plugin: "kotlin"
apply plugin: "idea"
sourceSets {
main {
resources {
srcDirs "src/main/resources", "conf"
exclude "**/node_modules/**"
}
}
}
repositories {
jcenter()
maven { url "http://jcenter.bintray.com" }
maven { url "https://dl.bintray.com/kotlin/exposed" }
maven { url "http://repository.jetbrains.com/all" }
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:1.0.+",
ratpack.dependency("guice"),
ratpack.dependency("rx"),
ratpack.dependency("hikari"),
'com.squareup.okhttp3:okhttp:3.2.0',
"com.fasterxml.jackson.module:jackson-module-kotlin:2.7.5",
'io.reactivex:rxkotlin:0.60.0',
'com.github.kittinunf.fuel:fuel:1.3.1',
'com.github.kittinunf.fuel:fuel-rxjava:1.3.1',
'org.funktionale:funktionale:0.9',
'org.skyscreamer:jsonassert:1.3.0',
'org.postgresql:postgresql:9.4.1209',
'com.h2database:h2:1.4.192',
'com.github.seratch:kotliquery:1.1.1',
'org.hsqldb:hsqldb:2.3.4'
runtime 'org.apache.logging.log4j:log4j-slf4j-impl:2.6.1',
'org.apache.logging.log4j:log4j-api:2.6.1',
'org.apache.logging.log4j:log4j-core:2.6.1',
'com.lmax:disruptor:3.3.4'
testCompile "junit:junit:4.+",
'org.jetbrains.spek:spek:1.0.+',
"org.jetbrains.kotlin:kotlin-test:1.0.+"
}
idea {
project {
jdkName "1.8"
languageLevel "JDK_1_8"
vcs = "Git"
ipr {
withXml {
def node = it.asNode()
def parser = new XmlParser()
node.append(parser.parse(file("${rootDir}/gradle/idea/codeStyleSettings.xml")))
node.append(parser.parse(file("${rootDir}/gradle/idea/gradleSettings.xml")))
}
}
}
}
run {
jvmArgs "-Dratpack.port=7357"
if (project.hasProperty("cli")) {
args["cli"]
}
}
mainClassName = "com.hallila.trycatch.Main"