-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
57 lines (45 loc) · 1.75 KB
/
build.gradle
File metadata and controls
57 lines (45 loc) · 1.75 KB
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
// Apply the java plugin to add support for Java, and the maven publish
['java', 'maven-publish'].each {
apply plugin : it
}
group = 'com.diffbot'
version = '1.0'
repositories {
mavenCentral ()
}
task wrapper(type: Wrapper) {
gradleVersion = '2.13'
}
task server(type:JavaExec) {
classpath = sourceSets.main.runtimeClasspath
main = 'com.diffbot.frohmd.webapp.Server';
List<String> defaults = new ArrayList<>();
defaults.add("-Xmx2G")
jvmArgs(defaults)
}
task testinject(type:JavaExec) {
classpath = sourceSets.main.runtimeClasspath
main = 'com.diffbot.frohmd.webapp.InjectTest';
if(project.hasProperty('arguments')){
args(arguments.split("\\s+"))
}
List<String> defaults = new ArrayList<>();
defaults.add("-Xmx2G")
jvmArgs(defaults)
}
// In this section you declare the dependencies for your production and test code
dependencies {
// The production code uses the SLF4J logging API at compile time
compile 'org.slf4j:slf4j-api:1.7.13'
compile group: 'com.google.guava', name: 'guava', version: '19.0'
compile group: 'postgresql', name: 'postgresql', version: '9.1-901-1.jdbc4'
compile group: 'com.github.luben', name: 'zstd-jni', version: '1.2.0'
compile group: 'org.apache.tomcat.embed', name: 'tomcat-embed-core', version: '8.5.14'
compile group: 'org.json', name: 'json', version: '20160810'
compile group: 'commons-io', name: 'commons-io', version: '2.5'
compile group: 'com.datastax.cassandra', name: 'cassandra-driver-core', version: '3.1.4'
compile group: 'net.jpountz.lz4', name: 'lz4', version: '1.3.0'
compile group: 'com.moandjiezana.toml', name: 'toml4j', version: '0.7.1'
// Declare the dependency for your favourite test framework you want to use in your tests.
testCompile 'junit:junit:3.8.2'
}