-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
56 lines (45 loc) · 1.31 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
buildscript {
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
}
}
plugins {
id 'java'
id 'eclipse'
id 'idea'
}
repositories {
mavenLocal()
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url "https://oss.sonatype.org/content/repositories/releases/" }
}
version '0.2.0'
sourceCompatibility = 1.11
targetCompatibility = 1.11
compileJava.options.encoding = "UTF-8"
dependencies {
compile "com.sparkjava:spark-core:2.9.1"
compile "org.apache.velocity:velocity-engine-core:2.1"
compile "com.fasterxml.jackson.core:jackson-databind:2.10.1"
runtime 'org.apache.logging.log4j:log4j-slf4j-impl:2.12.0'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
task run_writer(dependsOn: classes, type: JavaExec) {
main = "com.galvarez.technologies.JsonWriter"
classpath = sourceSets.main.runtimeClasspath
standardInput = System.in
//workingDir = project.file('.')
ignoreExitValue = true
args "src/assets/technologies.json"
}
task run_server(dependsOn: classes, type: JavaExec) {
main = "com.galvarez.technologies.Application"
classpath = sourceSets.main.runtimeClasspath
standardInput = System.in
//workingDir = project.file('.')
ignoreExitValue = true
}