This repository has been archived by the owner on Oct 7, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
84 lines (72 loc) · 2.49 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
buildscript {
apply from: 'https://raw.githubusercontent.com/comodal/gradle-conf/master/plugins.gradle'
apply from: 'https://raw.githubusercontent.com/comodal/gradle-conf/master/java/plugins.gradle'
dependencies {
classpath "$axion"
classpath "$bintray"
classpath "$jmh"
}
}
ext {
desc = 'Fast Hash Binary Overlay Wrappers'
}
apply from: 'https://raw.githubusercontent.com/comodal/gradle-conf/master/java/java.gradle'
apply from: 'https://raw.githubusercontent.com/comodal/gradle-conf/master/axion.gradle'
apply from: 'https://raw.githubusercontent.com/comodal/gradle-conf/master/comodal.gradle'
apply from: 'https://raw.githubusercontent.com/comodal/gradle-conf/master/java/bintray-maven.gradle'
//apply from: 'https://raw.githubusercontent.com/comodal/gradle-conf/master/java/checks.gradle'
apply from: 'https://raw.githubusercontent.com/comodal/gradle-conf/master/java/jmh.gradle'
apply plugin: 'idea'
sourceCompatibility = JavaVersion.VERSION_1_9
sourceSets {
mustache
main {
java {
//srcDir 'src/systems.comodal.address_overlay'
srcDir 'src/systems.comodal.hash_overlay'
}
resources {
srcDir 'src/systems.comodal.address_overlay/resources'
}
}
}
repositories {
maven { url "http://oss.sonatype.org/content/repositories/snapshots" }
}
dependencies {
mustacheCompile 'com.github.spullara.mustache.java:compiler:+'
mustacheCompile 'org.bouncycastle:bcprov-jdk15on:+'
jmh 'org.bouncycastle:bcprov-jdk15on:+'
jmh fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'org.bouncycastle:bcprov-jdk15on:+'
}
test {
testLogging {
events "passed", "skipped", "failed", "standardOut", "standardError"
}
}
jmh {
// http://jmh.morethan.io/
includeTests = false
benchmarkParameters = [msgLength: "128"]
threads = 3
}
task generateSrc(type: JavaExec) {
classpath = sourceSets.mustache.runtimeClasspath
main = 'systems.comodal.mustache.Generate'
if (project.hasProperty('dryRun')) {
args 'dryRun'
}
}
task generateAddrSrc(type: JavaExec) {
classpath = sourceSets.mustache.runtimeClasspath
main = 'systems.comodal.mustache.GenerateAddresses'
if (project.hasProperty('dryRun')) {
args 'dryRun'
}
}
task printMemUsage(type: JavaExec) {
classpath = sourceSets.jmh.runtimeClasspath
main = 'systems.comodal.hash.benchmark.MemoryMeasurements'
jvmArgs '-javaagent:/Users/james/git/hash-overlay/libs/jamm-0.3.2-SNAPSHOT.jar'
}