-
Notifications
You must be signed in to change notification settings - Fork 39
/
build.gradle
72 lines (58 loc) · 1.95 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
plugins {
id 'me.champeau.gradle.jmh' version '0.2.0'
}
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'me.champeau.gradle.jmh'
sourceCompatibility = 1.8
targetCompatibility = 1.8
group = 'com.pinterest'
version = '1.0.1-SNAPSHOT'
ext.jmhVer = '1.13'
ext.hdrHistVer = '2.1.9'
ext.quasarVer = '0.7.5'
ext.comsatVer = '0.7.0'
ext.httpCoreVer = '4.4.5'
ext.slf4jVer = '1.7.21'
ext.junitVer = '4.12'
repositories {
// mavenLocal()
mavenCentral()
maven {
url "https://oss.sonatype.org/content/repositories/snapshots"
}
}
configurations {
quasar
}
configurations.all {
resolutionStrategy {
failOnVersionConflict()
force "org.hdrhistogram:HdrHistogram:$hdrHistVer"
force "org.apache.httpcomponents:httpcore:$httpCoreVer"
}
}
dependencies {
testCompile group: 'junit', name: 'junit', version: "$junitVer"
compile group: 'co.paralleluniverse', name: 'quasar-core', version: "$quasarVer", classifier: 'jdk8'
compile group: 'co.paralleluniverse', name: 'comsat-httpclient', version: "$comsatVer"
compile group: 'org.hdrhistogram', name: 'HdrHistogram', version: "$hdrHistVer"
compile group: 'org.slf4j', name: 'slf4j-api', version: "$slf4jVer"
// compile group: 'org.slf4j', name: 'slf4j-simple', version: "$slf4jVer"
// For the IDE
// compile "org.openjdk.jmh:jmh-core:$jmhVer"
// compile "org.openjdk.jmh:jmh-generator-annprocess:$jmhVer"
quasar group: 'co.paralleluniverse', name: 'quasar-core', version: "$quasarVer", classifier: 'jdk8'
}
jmh {
jmhVersion = "$jmhVer"
include = '.*'
jvmArgs = "-server -XX:+TieredCompilation -XX:+AggressiveOpts -javaagent:${configurations.quasar.iterator().next()} -Dco.paralleluniverse.fibers.detectRunawayFibers=false"
benchmarkMode = 'avgt' // 'thrpt'
timeUnit = 'ms'
}
tasks.withType(Test) {
allJvmArgs = []
useJUnit()
jvmArgs "-javaagent:${configurations.quasar.iterator().next()}"
}