-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
133 lines (93 loc) · 3.07 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
buildscript {
ext.kotlin_version = '1.2.51'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
//classpath 'org.junit.platform:junit-platform-gradle-plugin:1.0.0'
// for Spec - http://spekframework.org/docs/latest/
classpath 'org.junit.platform:junit-platform-gradle-plugin:1.0.0'
}
}
plugins {
id 'java'
id "org.jetbrains.kotlin.jvm" version "1.2.51"
id "application"
}
apply plugin: 'kotlin'
apply plugin: 'groovy'
apply plugin: 'org.junit.platform.gradle.plugin'
group 'ianmorgan.github.io'
version '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
jcenter()
maven { url "https://jitpack.io" }
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
compile "io.javalin:javalin:1.6.1"
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.9.5'
compile group: 'org.json', name: 'json', version: '20180130'
compile group: 'commons-cli', name: 'commons-cli', version: '1.4'
implementation 'com.github.ianmorgan:json-utils:e772fbc'
compile 'com.graphql-java:graphql-java:8.0'
compile "org.codehaus.groovy:groovy-all:2.5.1"
compile 'com.github.spullara.mustache.java:compiler:0.9.5'
compile 'khttp:khttp:0.1.0'
//testCompile "org.spockframework:spock-core:1.0-groovy-2.4"
//testCompile 'org.jetbrains.spek:spek-api:1.1.5'
//testRuntime 'org.jetbrains.spek:spek-junit-platform-engine:1.1.5'
testCompile group: 'com.natpryce', name: 'hamkrest', version: '1.4.2.2'
testCompile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
testCompile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
testCompile "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
testCompile ('org.jetbrains.spek:spek-api:1.1.5') {
exclude group: 'org.jetbrains.kotlin'
}
testRuntime ('org.jetbrains.spek:spek-junit-platform-engine:1.1.5') {
exclude group: 'org.junit.platform'
exclude group: 'org.jetbrains.kotlin'
}
//org.jetbrains.spek:spek-api:1.1.5
//org.jetbrains.spek:spek-junit-platform-engine:1.1.5
testCompile ('org.junit.platform:junit-platform-runner:1.0.0')
testCompile 'khttp:khttp:0.1.0'
}
mainClassName = "ianmorgan.graphstore.AppKt"
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
task depsJar(type: Jar) {
dependsOn = ['compileKotlin']
archiveName = "doc-store-deps.jar"
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}
task stashDepsJar(type: Copy) {
from 'build/libs/doc-store-deps.jar'
into "stash"
}
task appJar (type: Jar) {
dependsOn = ['compileKotlin']
archiveName = "doc-store-app.jar"
from {
sourceSets.main.output
}
}
run {
if (project.hasProperty("appArgs")) {
args Eval.me(appArgs)
}
}