forked from dmart28/reveno
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildTests.gradle
executable file
·89 lines (73 loc) · 1.79 KB
/
buildTests.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
apply plugin: "java"
apply plugin: "idea"
apply plugin: "eclipse"
apply plugin: "maven"
buildscript {
repositories { jcenter() }
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.1'
}
}
apply plugin: 'java' // or 'groovy'. Must be explicitly applied
apply plugin: 'com.github.johnrengelman.shadow'
group = 'org.reveno'
version = '0.1.0'
repositories {
mavenLocal()
mavenCentral()
}
sourceSets {
acceptanceTest {
java {
srcDir 'java'
}
resources {
srcDir 'resources'
}
}
perfTest {
java {
srcDir 'java'
}
resources {
srcDir 'resources'
}
}
test {
java {
srcDirs = ['src/test/java', 'src/acceptanceTest/java']
}
}
main {
java {
srcDirs = ['src/main/java', 'src/test/java', 'src/acceptanceTest/java', 'src/perfTest/java']
}
}
}
dependencies {
compile "com.lmax:disruptor:$disruptorVersion"
compile "io.protostuff:protostuff-uberjar:$protostuffVersion"
compile "io.netty:netty-buffer:$nettyVersion"
compile "org.jgroups:jgroups:$jgroupsVersion"
compile "org.slf4j:slf4j-api:$slf4jVersion"
compile "org.slf4j:slf4j-log4j12:$log4jVersion"
compile "it.unimi.dsi:fastutil:$fastutilVersion"
compile "com.google.guava:guava:$guavaVersion"
compile "junit:junit:$junitVersion"
compile "org.easymock:easymock:$easymockVersion"
compile "com.google.guava:guava:$guavaVersion"
compile "junit:junit:$junitVersion"
compile "org.easymock:easymock:$easymockVersion"
}
def forks = Math.max(4, (int) (Runtime.runtime.availableProcessors() / 2))
test {
minHeapSize = "512m"
maxParallelForks = forks
testLogging {
events "passed", "skipped", "failed", "standardOut", "standardError"
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.4'
}
defaultTasks 'clean', 'build'