Skip to content

Commit 21ba03c

Browse files
committed
Move common dependencies to convention script.
1 parent 055078c commit 21ba03c

File tree

12 files changed

+15
-42
lines changed

12 files changed

+15
-42
lines changed

gradle/convention.gradle

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// GRADLE-2087 workaround, perform after java plugin
22
status = project.hasProperty('preferredStatus') ? project.preferredStatus : (version.contains('SNAPSHOT') ? 'snapshot' : 'release')
33

4-
subprojects { project ->
4+
subprojects {
55
if (!subprojects.empty) { // is a container
66
return
77
}
@@ -11,6 +11,15 @@ subprojects { project ->
1111
apply plugin: 'java'
1212
apply plugin: 'osgi'
1313

14+
dependencies {
15+
if (project.path != ":rxjava-core") {
16+
compile project(':rxjava-core')
17+
}
18+
19+
testCompile 'junit:junit-dep:4.10'
20+
testCompile 'org.mockito:mockito-core:1.8.5'
21+
}
22+
1423
sourceCompatibility = JavaVersion.VERSION_1_6
1524
targetCompatibility = JavaVersion.VERSION_1_6
1625

@@ -49,7 +58,7 @@ subprojects { project ->
4958
}
5059
}
5160

52-
// When outputing to an Ivy repo, we want to use the proper type field
61+
// When outputing to an Ivy repo, we want to use the proper type field
5362
gradle.taskGraph.whenReady {
5463
def isNotMaven = !it.hasTask(project.uploadMavenCentral)
5564
if (isNotMaven) {
@@ -116,8 +125,8 @@ subprojects { project ->
116125
dependsOn examplesClasses
117126
}
118127

119-
// Individual projects will apply specific language plugins which add to source sets…
120-
// do this late so we get those additions
128+
// Individual projects will apply specific language plugins which add to source sets…
129+
// do this late so we get those additions
121130
afterEvaluate {
122131
idea {
123132
module {

language-adaptors/rxjava-clojure/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ repositories {
1010
}
1111

1212
dependencies {
13-
compile project(':rxjava-core')
1413
compile 'org.clojure:clojure:1.4.+'
1514
compile 'clj-http:clj-http:0.6.4' // https://clojars.org/clj-http
1615
}
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
apply plugin: 'groovy'
22

33
dependencies {
4-
compile project(':rxjava-core')
54
compile 'org.codehaus.groovy:groovy-all:2.+'
6-
testCompile 'junit:junit-dep:4.10'
7-
testCompile 'org.mockito:mockito-core:1.8.5'
85
}

language-adaptors/rxjava-jruby/build.gradle

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@ sourceSets {
1818
}
1919

2020
dependencies {
21-
compile project(':rxjava-core')
2221
compile 'org.jruby:jruby:1.7+'
23-
testCompile 'junit:junit-dep:4.10'
24-
testCompile 'org.mockito:mockito-core:1.8.5'
2522
rspec 'org.jruby:jruby-complete:1.7.4'
2623
rspec 'org.rubygems:rspec:2.14.1'
2724
}

language-adaptors/rxjava-kotlin/build.gradle

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,5 @@ buildscript {
1111
apply plugin: 'kotlin'
1212

1313
dependencies {
14-
compile project(':rxjava-core')
1514
compile 'org.jetbrains.kotlin:kotlin-stdlib:0.6.1673'
16-
testCompile 'junit:junit-dep:4.10'
17-
testCompile 'org.mockito:mockito-core:1.8.5'
1815
}

language-adaptors/rxjava-scala/build.gradle

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ tasks.withType(ScalaCompile) {
1313

1414
dependencies {
1515
compile 'org.scala-lang:scala-library:2.10.+'
16-
compile project(':rxjava-core')
17-
18-
testCompile 'junit:junit-dep:4.10'
19-
testCompile 'org.mockito:mockito-core:1.8.5'
2016
testCompile 'org.scalatest:scalatest_2.10:1.9.1'
2117
}
2218

rxjava-contrib/rxjava-android/build.gradle

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
1-
2-
31
dependencies {
4-
compile project(':rxjava-core')
52
provided 'com.google.android:android:4.0.1.2'
63
provided 'com.google.android:support-v4:r7'
74

8-
testCompile 'junit:junit-dep:4.10'
9-
testCompile 'org.mockito:mockito-core:1.8.5'
105
testCompile 'org.robolectric:robolectric:2.1.1'
116
}
127

rxjava-contrib/rxjava-apache-http/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
dependencies {
2-
compile project(':rxjava-core')
32
compile 'org.apache.httpcomponents:httpclient:4.3'
43
compile 'org.apache.httpcomponents:httpcore-nio:4.3'
54
compile 'org.apache.httpcomponents:httpasyncclient:4.0'
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
dependencies {
2-
compile project(':rxjava-core')
3-
testCompile project(":rxjava-core").sourceSets.test.output
4-
testCompile 'junit:junit-dep:4.10'
5-
testCompile 'org.mockito:mockito-core:1.8.5'
2+
testCompile project(":rxjava-core").sourceSets.test.output
63
}

rxjava-contrib/rxjava-computation-expressions/build.gradle

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
dependencies {
2-
compile project(':rxjava-core')
3-
testCompile project(":rxjava-core").sourceSets.test.output
4-
testCompile 'junit:junit-dep:4.10'
5-
testCompile 'org.mockito:mockito-core:1.8.5'
2+
testCompile project(":rxjava-core").sourceSets.test.output
63
}

rxjava-contrib/rxjava-swing/build.gradle

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)