@@ -10,19 +10,9 @@ buildscript {
10
10
repositories {
11
11
mavenLocal()
12
12
mavenCentral()
13
- maven {
14
- // FIXME: waiting for https://github.com/johnrengelman/shadow/pull/38 to merge
15
- name ' Shadow'
16
- url ' http://dl.bintray.com/content/gvsmirnov/gradle-plugins'
17
- }
18
13
jcenter()
19
14
}
20
15
21
- dependencies {
22
- // Required for benchmarks
23
- classpath ' com.github.jengelman.gradle.plugins:shadow:0.8.1'
24
- }
25
-
26
16
apply from : file(' gradle/buildscript.gradle' ), to : buildscript
27
17
}
28
18
@@ -43,6 +33,8 @@ subprojects {
43
33
configurations {
44
34
examplesCompile. extendsFrom compile
45
35
examplesRuntime. extendsFrom runtime
36
+ perfCompile. extendsFrom compile
37
+ perfRuntime. extendsFrom runtime
46
38
}
47
39
48
40
@@ -52,19 +44,22 @@ subprojects {
52
44
53
45
sourceSets {
54
46
examples
55
- perf
47
+ perf {
48
+ compileClasspath + = sourceSets. main. output
49
+ }
56
50
}
57
51
58
52
tasks. build {
59
53
// include 'examples' in build task
60
54
dependsOn(examplesClasses)
55
+ dependsOn(perfClasses)
61
56
}
62
57
63
58
dependencies {
64
59
perfCompile ' org.openjdk.jmh:jmh-core:0.5.3'
65
60
perfCompile ' org.openjdk.jmh:jmh-generator-annprocess:0.5.3'
66
61
67
- perfCompile project
62
+ // perfCompile project
68
63
}
69
64
70
65
eclipse {
@@ -83,28 +78,11 @@ subprojects {
83
78
}
84
79
}
85
80
86
- task perfJar(type : Jar , dependsOn : perfClasses) {
87
- from sourceSets. perf. output + sourceSets. main. output
88
- }
89
-
90
- task benchmarks(dependsOn : perfJar) {
91
-
92
- apply plugin : " shadow"
93
-
94
- shadow {
95
- classifier = " benchmarks"
96
- includeDependenciesFor = [" runtime" , " perfRuntime" ]
97
-
98
- transformer(com.github.jengelman.gradle.plugins.shadow.transformers.ManifestResourceTransformer ) {
99
- mainClass = " org.openjdk.jmh.Main"
100
- }
101
- }
102
-
103
- doLast {
104
- shadowJar. execute()
105
- }
106
-
107
- }
81
+ task benchmarks(type : JavaExec ) {
82
+ main = ' org.openjdk.jmh.Main'
83
+ classpath = sourceSets. perf. runtimeClasspath + sourceSets. main. output
84
+ }
85
+
108
86
}
109
87
110
88
project(' :rxjava-core' ) {
0 commit comments