forked from kousen/java_8_recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
36 lines (26 loc) · 819 Bytes
/
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
plugins {
id 'java-library'
id 'eclipse'
id "me.champeau.jmh" version "0.6.6"
}
sourceCompatibility = JavaVersion.VERSION_1_8
repositories {
mavenCentral()
}
jmh {
duplicateClassesStrategy = DuplicatesStrategy.WARN
includes = ['parallel.DoublingDemo.*', 'parallel.CustomPoolBenchmark.*']
}
test {
useJUnitPlatform()
maxParallelForks = (int) (Runtime.runtime.availableProcessors() / 2)
}
String JUNIT5_VERSION = '5.8.2'
dependencies {
testImplementation 'org.hamcrest:hamcrest:2.2'
testImplementation "org.junit.jupiter:junit-jupiter:$JUNIT5_VERSION"
testImplementation 'junit:junit:4.13.2'
testRuntimeOnly "org.junit.vintage:junit-vintage-engine:$JUNIT5_VERSION"
jmh 'org.openjdk.jmh:jmh-generator-annprocess:1.35'
jmh 'org.openjdk.jmh:jmh-core:1.35'
}