-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
86 lines (63 loc) · 1.97 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
group 'com.ethercamp.pivot'
version '1.0-SNAPSHOT'
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.3.5.RELEASE")
}
}
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'spring-boot'
repositories {
mavenLocal()
jcenter()
mavenCentral()
maven { url "https://oss.jfrog.org/libs-snapshot/" }
maven { url "https://dl.bintray.com/ethereum/maven/" }
maven { url "https://repo.spring.io/libs-snapshot" }
}
dependencies {
compile "org.springframework.boot:spring-boot-starter-web"
compile "org.springframework.boot:spring-boot-starter-actuator"
compile "org.springframework.boot:spring-boot-devtools"
// compile "com.google.guava:guava:19.0"
compile "org.springframework:spring-context:4.2.0.BUILD-SNAPSHOT"
compile "org.projectlombok:lombok:1.16.4"
compile "org.apache.commons:commons-io:1.3.2"
testCompile "junit:junit"
testCompile "org.springframework:spring-test"
}
task wrapper(type: Wrapper) {
gradleVersion = '2.3'
}
task stage {
dependsOn bootRepackage
}
bootRun {
systemProperties = System.properties
def args = ["-server", "-Xss32m",
"-XX:+UseCompressedOops",
"-XX:+HeapDumpOnOutOfMemoryError",
"-XX:-OmitStackTraceInFastThrow",
"-Djava.net.preferIPv4Stack=true"]
if ( project.hasProperty('jvmArgs') ) {
args.addAll(project.jvmArgs.split('\\s+'))
}
jvmArgs = args
addResources = true
}
springBoot {
mainClass = "com.ethercamp.pivot.Application"
}
sourceCompatibility=1.8
// to keep method arguments names in bytecode
// used for terminal code completion
[compileJava, compileTestJava]*.options*.compilerArgs = ['-parameters']
task runMorden (type: JavaExec) {
main = "com.ethercamp.harmony.Application"
classpath = sourceSets.main.runtimeClasspath
jvmArgs = [] + '-Dethereumj.conf.res=morden.conf'
}