-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
80 lines (63 loc) · 2.58 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
apply plugin: 'java'
apply plugin: 'application'
sourceCompatibility = '1.7'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
mainClassName = 'co.paralleluniverse.examples.cascading.Main'
ext.quasarVersion = '0.6.0'
ext.comsatVersion = '0.2.0'
ext.jettyVersion = '9.2.0.M0'
ext.undertowVersion = '1.0.12.Final'
ext.tomcatVersion = '8.0.8'
ext.log4jVersion = '2.0-rc1'
repositories {
mavenLocal();
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
maven { url 'https://maven.java.net/content/repositories/snapshots' }
}
configurations {
quasar
}
configurations.all {
resolutionStrategy {
// failOnVersionConflict()
force 'org.slf4j:slf4j-api:1.7.6'
force 'com.google.guava:guava:16.0.1'
force 'org.ow2.asm:asm:5.0.1'
force 'org.ow2.asm:asm-commons:5.0.1'
}
}
dependencies {
compile "org.slf4j:slf4j-api:1.7.7"
compile "co.paralleluniverse:quasar-core:$quasarVersion"
quasar "co.paralleluniverse:quasar-core:$quasarVersion"
compile "co.paralleluniverse:comsat-servlet:$comsatVersion"
compile "co.paralleluniverse:comsat-httpclient:$comsatVersion"
compile "co.paralleluniverse:comsat-jersey-server:$comsatVersion"
compile "org.eclipse.jetty:jetty-server:$jettyVersion"
compile "org.eclipse.jetty:jetty-servlet:$jettyVersion"
compile "io.undertow:undertow-core:$undertowVersion"
compile "io.undertow:undertow-servlet:$undertowVersion"
compile "org.apache.tomcat.embed:tomcat-embed-core:$tomcatVersion"
compile "org.apache.tomcat.embed:tomcat-embed-jasper:$tomcatVersion"
runtime "org.apache.tomcat.embed:tomcat-embed-logging-log4j:$tomcatVersion"
runtime "org.apache.logging.log4j:log4j-slf4j-impl:$log4jVersion"
runtime "org.apache.logging.log4j:log4j-api:$log4jVersion"
runtime "org.apache.logging.log4j:log4j-core:$log4jVersion"
compile 'commons-cli:commons-cli:1.2'
}
run {
jvmArgs "-javaagent:${configurations.quasar.iterator().next()}" // =v, =d
jvmArgs '-server'
// jvmArgs "-XX:+UnlockCommercialFeatures","-XX:+FlightRecorder"
// jvmArgs "-XX:StartFlightRecording=duration=30s,delay=2s,filename=myrecording.jfr,settings=ProfilingHeap.jfc"
jvmArgs '-Xmx6000m'
jvmArgs "-XX:+UseG1GC","-XX:MaxGCPauseMillis=200"
// jvmArgs "-ea"
classpath = sourceSets.main.runtimeClasspath
if(project.hasProperty('args')){
args project.args.split('\\s+')
}
// systemProperty 'co.paralleluniverse.fibers.verifyInstrumentation', 'true'
}
defaultTasks 'build'