-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle
More file actions
32 lines (25 loc) · 736 Bytes
/
Copy pathbuild.gradle
File metadata and controls
32 lines (25 loc) · 736 Bytes
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
group 'benchmarking'
version '1.0'
apply plugin: 'java'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compile group: 'org.openjdk.jmh', name: 'jmh-core', version: '1.21'
compile group: 'org.openjdk.jmh', name: 'jmh-generator-annprocess', version: '1.21'
testCompile group: 'junit', name: 'junit', version: '4.11'
}
task(runMain, dependsOn: 'classes', type: JavaExec) {
main = 'com.github.launch.InvokeBenchmark'
classpath = sourceSets.main.runtimeClasspath
}
jar {
manifest {
attributes "Main-Class": "com.github.launch.InvokeBenchmark"
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}