File tree 2 files changed +27
-3
lines changed 2 files changed +27
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ buildscript {
13
13
jcenter()
14
14
}
15
15
16
- apply from : file(' gradle/buildscript.gradle' ), to : buildscript
16
+ apply from : file(' gradle/buildscript.gradle' ), to : buildscript
17
17
}
18
18
19
19
allprojects {
@@ -27,6 +27,7 @@ allprojects {
27
27
28
28
subprojects {
29
29
apply plugin : ' java'
30
+ apply plugin : ' shadow'
30
31
group = " com.netflix.rxjava"
31
32
32
33
// make 'examples' use the same classpath
@@ -55,12 +56,19 @@ subprojects {
55
56
dependsOn(perfClasses)
56
57
}
57
58
59
+ task perfJar(type : Jar , dependsOn : perfClasses) {
60
+ from sourceSets. perf. output + sourceSets. main. output
61
+ }
62
+
58
63
dependencies {
59
64
perfCompile ' org.openjdk.jmh:jmh-core:0.5.3'
60
65
perfCompile ' org.openjdk.jmh:jmh-generator-annprocess:0.5.3'
61
-
62
66
// perfCompile project
63
67
}
68
+
69
+ artifacts {
70
+ perfRuntime perfJar
71
+ }
64
72
65
73
eclipse {
66
74
classpath {
@@ -120,7 +128,17 @@ subprojects {
120
128
args ' .*OperatorSerializePerf.*' // for running only a specific test
121
129
}
122
130
}
123
-
131
+
132
+ shadow {
133
+ classifier = " benchmarks"
134
+ includeDependenciesFor = [" runtime" , " perfRuntime" ]
135
+
136
+ transformer(com.github.jengelman.gradle.plugins.shadow.transformers.ManifestResourceTransformer ) {
137
+ mainClass = " org.openjdk.jmh.Main"
138
+ }
139
+ }
140
+
141
+ shadowJar. dependsOn perfJar
124
142
}
125
143
126
144
project(' :rxjava-core' ) {
Original file line number Diff line number Diff line change 2
2
repositories {
3
3
// Repo in addition to maven central
4
4
repositories { maven { url ' http://dl.bintray.com/content/netflixoss/external-gradle-plugins/' } } // For gradle-release
5
+ maven {
6
+ // FIXME: waiting for https://github.com/johnrengelman/shadow/pull/38 to merge
7
+ name ' Shadow'
8
+ url ' http://dl.bintray.com/content/gvsmirnov/gradle-plugins'
9
+ }
5
10
}
6
11
dependencies {
7
12
classpath ' nl.javadude.gradle.plugins:license-gradle-plugin:0.6.1'
8
13
classpath ' com.mapvine:gradle-cobertura-plugin:0.1'
9
14
classpath ' gradle-release:gradle-release:1.1.5'
10
15
classpath ' org.ajoberstar:gradle-git:0.5.0'
16
+ classpath ' com.github.jengelman.gradle.plugins:shadow:0.8.1'
11
17
}
You can’t perform that action at this time.
0 commit comments