Skip to content

Commit 7aa6a66

Browse files
Nebula Build - Single Module
1 parent 155860e commit 7aa6a66

14 files changed

+9
-694
lines changed

build.gradle

+8-140
Original file line numberDiff line numberDiff line change
@@ -1,147 +1,15 @@
1-
ext.githubProjectName = 'RxJava'
2-
3-
apply from: file('gradle/convention.gradle')
4-
apply from: file('gradle/maven.gradle')
5-
//apply from: file('gradle/check.gradle')
6-
apply from: file('gradle/license.gradle')
7-
apply from: file('gradle/release.gradle')
8-
91
buildscript {
10-
repositories {
11-
mavenLocal()
12-
mavenCentral()
13-
jcenter()
14-
}
15-
16-
apply from: file('gradle/buildscript.gradle'), to: buildscript
17-
}
18-
19-
allprojects {
20-
apply plugin: 'eclipse'
21-
apply plugin: 'idea'
22-
repositories {
23-
mavenLocal()
24-
mavenCentral()
25-
}
2+
repositories { jcenter() }
3+
dependencies { classpath 'com.netflix.nebula:gradle-rxjava-project-plugin:1.12.+' }
264
}
275

28-
subprojects {
29-
apply plugin: 'java'
30-
apply plugin: 'shadow'
31-
group = "com.netflix.rxjava"
32-
33-
// everything defaults to 1.6
34-
sourceCompatibility = JavaVersion.VERSION_1_6
35-
targetCompatibility = JavaVersion.VERSION_1_6
36-
37-
// make 'examples' use the same classpath
38-
configurations {
39-
examplesCompile.extendsFrom compile
40-
examplesRuntime.extendsFrom runtime
41-
perfCompile.extendsFrom compile
42-
perfRuntime.extendsFrom runtime
43-
}
44-
45-
46-
tasks.withType(Javadoc).each {
47-
it.classpath = sourceSets.main.compileClasspath
48-
}
6+
group = 'io.reactivex'
7+
description = 'RxJava: Reactive Extensions for the JVM – a library for composing asynchronous and event-based programs using observable sequences for the Java VM.'
498

50-
sourceSets {
51-
examples
52-
perf {
53-
compileClasspath += sourceSets.main.output
54-
}
55-
}
9+
apply plugin: 'rxjava-project'
5610

57-
tasks.build {
58-
//include 'examples' in build task
59-
dependsOn(examplesClasses)
60-
dependsOn(perfClasses)
61-
}
62-
63-
task perfJar(type: Jar, dependsOn: perfClasses) {
64-
from sourceSets.perf.output + sourceSets.main.output
65-
}
66-
67-
dependencies {
68-
perfCompile 'org.openjdk.jmh:jmh-core:0.9'
69-
perfCompile 'org.openjdk.jmh:jmh-generator-annprocess:0.9'
70-
}
71-
72-
artifacts {
73-
perfRuntime perfJar
74-
}
75-
76-
eclipse {
77-
classpath {
78-
plusConfigurations += configurations.perfCompile
79-
80-
downloadSources = true
81-
downloadJavadoc = true
82-
}
83-
}
84-
85-
idea {
86-
module {
87-
scopes.PROVIDED.plus += configurations.perfCompile
88-
scopes.PROVIDED.minus += configurations.compile
89-
}
90-
}
91-
92-
/**
93-
* By default: Run without arguments this will execute all benchmarks that are found (can take a long time).
94-
*
95-
* Optionally pass arguments for custom execution. Example:
96-
*
97-
* ../gradlew benchmarks '-Pjmh=-f 1 -tu ns -bm avgt -wi 5 -i 5 -r 1 .*OperatorSerializePerf.*'
98-
*
99-
* To see all options:
100-
*
101-
* ../gradlew benchmarks '-Pjmh=-h'
102-
*/
103-
task benchmarks(type: JavaExec) {
104-
main = 'org.openjdk.jmh.Main'
105-
classpath = sourceSets.perf.runtimeClasspath + sourceSets.main.output
106-
maxHeapSize = "512m"
107-
jvmArgs '-XX:+UnlockCommercialFeatures'
108-
jvmArgs '-XX:+FlightRecorder'
109-
jvmArgs '-XX:AutoBoxCacheMax=1000000'
110-
111-
if (project.hasProperty('jmh')) {
112-
args(jmh.split(' '))
113-
} else {
114-
//args '-h' // help output
115-
args '-f' // fork
116-
args '1'
117-
args '-wi' // warmup iterations
118-
args '5'
119-
args '-i' // test iterations
120-
args '5'
121-
args '-r' // time per execution in seconds
122-
args '5'
123-
//args '-prof' // profilers
124-
//args 'HS_GC' // HotSpot (tm) memory manager (GC) profiling via implementation-specific MBeans
125-
//args 'HS_RT' // HotSpot (tm) runtime profiling via implementation-specific MBeans
126-
//args 'HS_THR' // HotSpot (tm) threading subsystem via implementation-specific MBeans
127-
//args 'HS_COMP' // HotSpot (tm) JIT compiler profiling via implementation-specific MBeans
128-
//args 'HS_CL' // HotSpot (tm) classloader profiling via implementation-specific MBeans
129-
//args 'STACK' // Simple and naive Java stack profiler
130-
}
131-
}
132-
133-
shadow {
134-
classifier = "benchmarks"
135-
includeDependenciesFor = ["runtime", "perfRuntime"]
136-
137-
transformer(com.github.jengelman.gradle.plugins.shadow.transformers.ManifestResourceTransformer) {
138-
mainClass = "org.openjdk.jmh.Main"
139-
}
140-
}
141-
142-
shadowJar.dependsOn perfJar
11+
dependencies {
12+
testCompile 'junit:junit-dep:4.10'
13+
testCompile 'org.mockito:mockito-core:1.8.5'
14314
}
14415

145-
project(':rxjava') {
146-
sourceSets.test.java.srcDir 'src/test/java'
147-
}

codequality/HEADER

-13
This file was deleted.

codequality/checkstyle.xml

-188
This file was deleted.

gradle/buildscript.gradle

-17
This file was deleted.

0 commit comments

Comments
 (0)