-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
78 lines (58 loc) · 1.41 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
apply plugin: 'java'
group = 'ru.gvsmirnov'
version = '0.0.1'
sourceCompatibility = JavaVersion.VERSION_1_8
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:0.9.0-M3'
}
}
repositories {
jcenter()
mavenCentral()
}
sourceSets {
perf
}
dependencies {
compile 'org.uncommons:uncommons-maths:1.2'
perfCompile project
perfCompile 'org.openjdk.jmh:jmh-core:0.9'
perfCompile 'org.openjdk.jmh:jmh-generator-annprocess:0.9'
perfCompile 'com.fasterxml.jackson.core:jackson-core:2.3.2'
perfCompile 'com.fasterxml.jackson.core:jackson-databind:2.3.2'
}
apply plugin: "idea"
idea {
module {
scopes.PROVIDED.plus += configurations.perfCompile
scopes.PROVIDED.minus += configurations.compile
}
}
apply plugin: "eclipse"
eclipse {
classpath {
plusConfigurations += configurations.perfCompile
}
}
task benchmarks(dependsOn: perfClasses) {
apply plugin: 'com.github.johnrengelman.shadow'
shadowJar {
classifier = "benchmarks"
from sourceSets.perf.output
from sourceSets.main.output
from project.configurations.perfRuntime
appendManifest {
attributes "Main-Class": "org.openjdk.jmh.Main"
}
}
doLast {
shadowJar.execute()
}
}
task wrapper(type: Wrapper) {
gradleVersion = '1.12'
}