-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
84 lines (57 loc) · 1.88 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
apply plugin: 'idea'
apply plugin: 'java'
apply plugin: 'application'
mainClassName = "com.rsm.servers.Sequencer"
repositories {
mavenLocal()
mavenCentral()
}
configurations {
generated
}
sourceSets {
generated {
}
main {
compileClasspath += sourceSets.generated.output
}
}
dependencies {
compile 'net.sf.trove4j:trove4j:3.0.3'
compile 'log4j:log4j:1.2.17'
compile 'junit:junit:4.11'
compile 'it.unimi.dsi:fastutil:6.5.12'
compile 'io.netty:netty-all:5.0.0.Alpha1'
compile 'net.sf.kdgcommons:kdgcommons:1.0.14'
compile 'net.openhft:lang:6.3.5'
compile 'net.openhft:collections:3.0d'
compile 'net.openhft:compiler:2.1'
// compile 'net.openhft:direct:0.1-SNAPSHOT'
// compile 'net.openhft:TransFIX:1.0.0-SNAPSHOT'
compile 'net.openhft:affinity:2.0.1'
compile 'net.openhft:chronicle:2.0.3'
compile 'uk.co.real_logic:sbe:0.1-SNAPSHOT'
testCompile 'junit:junit:4.11'
//make compile depend on sbe
}
task runClient(type: JavaExec) {
description = "Run the client"
classpath sourceSets.main.runtimeClasspath
main = "com.rsm.clients.Client"
}
task createSBEClasses(type: JavaExec) {
description = "generate SBE files"
// println "Run: java -Dsbe.output.dir=src/main/java -jar ../simple-binary-encoding/target/dist/sbe.jar src/main/resources/schemas/itch_4_1/*.xml"
classpath sourceSets.generated.runtimeClasspath
main = "uk.co.real_logic.sbe.SbeTool"
// args = "$sourceSets.generated.resources.srcDirs"
File res = file("src/main/resources")
// args = [res.absolutePath + "/schemas/itch_4_1/*.xml"]
tree = fileTree(dir: "src/main/resources").matching {
include "schemas/**"
}
args = tree.getFiles()
// jvmArgs = ["-Dsbe.output.dir=$sourceSets.generated.java.srcDirs"]
jvmArgs = ["-Dsbe.output.dir=src/generated/java"]
println commandLine
}