Gitlab service upgraded. Please report any problems to dl_gitadmin@cs.lth.se

Commit ff527fd3 authored by Noric Couderc's avatar Noric Couderc

Added task benchmarkJar to generate full jar with benchmarks

The original jmhJar task did not work as expected.
parent 52d7d00d
......@@ -53,6 +53,16 @@ jmh {
timeOnIteration = '1s'
// benchmarkParameters = [seed: ['0', '1']]
// humanOutputFile = project.file("output-perf.txt")
task benchmarkJar(type: Jar, dependsOn: jmhJar) {
manifest {
attributes 'Main-Class': 'org.openjdk.jmh.Main'
}
classifier = 'benchmark'
from {
(jmhJar.outputs.files + configurations.jmh + configurations.jmhRuntime)
.collect { it.isDirectory() ? it : zipTree(it) }
}
}
// In this section you declare where to find the dependencies of your project
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment