Skip to content

Commit f4f44e5

Browse files
committed
Don't use provided dependency configuration for test dependencies.
Gets test dependencies off the compile classpath and removes the need to prevent imports of packages in the OSGi manifest.
1 parent 6f8b335 commit f4f44e5

File tree

12 files changed

+15
-28
lines changed

12 files changed

+15
-28
lines changed

language-adaptors/rxjava-clojure/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ jar {
2929
name = 'rxjava-clojure'
3030
instruction 'Bundle-Vendor', 'Netflix'
3131
instruction 'Bundle-DocURL', 'https://github.com/Netflix/RxJava'
32-
instruction 'Import-Package', '!org.junit,!junit.framework,!org.mockito.*,*'
3332
instruction 'Fragment-Host', 'com.netflix.rxjava.core'
3433
}
3534
}

language-adaptors/rxjava-groovy/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ jar {
1212
name = 'rxjava-groovy'
1313
instruction 'Bundle-Vendor', 'Netflix'
1414
instruction 'Bundle-DocURL', 'https://github.com/Netflix/RxJava'
15-
instruction 'Import-Package', '!org.junit,!junit.framework,!org.mockito.*,*'
1615
instruction 'Fragment-Host', 'com.netflix.rxjava.core'
1716
}
1817
}

language-adaptors/rxjava-jruby/build.gradle

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ sourceSets {
2020
dependencies {
2121
compile project(':rxjava-core')
2222
compile 'org.jruby:jruby:1.7+'
23-
provided 'junit:junit-dep:4.10'
24-
provided 'org.mockito:mockito-core:1.8.5'
23+
testCompile 'junit:junit-dep:4.10'
24+
testCompile 'org.mockito:mockito-core:1.8.5'
2525
rspec 'org.jruby:jruby-complete:1.7.4'
2626
rspec 'org.rubygems:rspec:2.14.1'
2727
}
@@ -41,7 +41,6 @@ jar {
4141
name = 'rxjava-jruby'
4242
instruction 'Bundle-Vendor', 'Netflix'
4343
instruction 'Bundle-DocURL', 'https://github.com/Netflix/RxJava'
44-
instruction 'Import-Package', '!org.junit,!junit.framework,!org.mockito.*,*'
4544
instruction 'Fragment-Host', 'com.netflix.rxjava.core'
4645
}
4746
}

language-adaptors/rxjava-kotlin/build.gradle

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,15 @@ apply plugin: 'kotlin'
1313
dependencies {
1414
compile project(':rxjava-core')
1515
compile 'org.jetbrains.kotlin:kotlin-stdlib:0.6.1673'
16-
provided 'junit:junit-dep:4.10'
17-
provided 'org.mockito:mockito-core:1.8.5'
16+
testCompile 'junit:junit-dep:4.10'
17+
testCompile 'org.mockito:mockito-core:1.8.5'
1818
}
1919

2020
jar {
2121
manifest {
2222
name = 'rxjava-kotlin'
2323
instruction 'Bundle-Vendor', 'Netflix'
2424
instruction 'Bundle-DocURL', 'https://github.com/Netflix/RxJava'
25-
instruction 'Import-Package', '!org.junit,!junit.framework,!org.mockito.*,*'
2625
instruction 'Fragment-Host', 'com.netflix.rxjava.core'
2726
}
2827
}

language-adaptors/rxjava-scala/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ jar {
4040
name = 'rxjava-scala'
4141
instruction 'Bundle-Vendor', 'Netflix'
4242
instruction 'Bundle-DocURL', 'https://github.com/Netflix/RxJava'
43-
instruction 'Import-Package', '!org.junit,!junit.framework,!org.mockito.*,!org.scalatest.*,*'
4443
instruction 'Fragment-Host', 'com.netflix.rxjava.core'
4544
}
4645
}

rxjava-contrib/rxjava-android/build.gradle

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ dependencies {
55
provided 'com.google.android:android:4.0.1.2'
66
provided 'com.google.android:support-v4:r7'
77

8-
// testing
9-
provided 'junit:junit-dep:4.10'
10-
provided 'org.mockito:mockito-core:1.8.5'
11-
provided 'org.robolectric:robolectric:2.1.1'
8+
testCompile 'junit:junit-dep:4.10'
9+
testCompile 'org.mockito:mockito-core:1.8.5'
10+
testCompile 'org.robolectric:robolectric:2.1.1'
1211
}
1312

1413

@@ -17,7 +16,6 @@ jar {
1716
name = 'rxjava-android'
1817
instruction 'Bundle-Vendor', 'Netflix'
1918
instruction 'Bundle-DocURL', 'https://github.com/Netflix/RxJava'
20-
instruction 'Import-Package', '!org.junit,!junit.framework,!org.mockito.*,*'
2119
}
2220
}
2321

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,5 @@ jar {
1010
name = 'rxjava-apache-http'
1111
instruction 'Bundle-Vendor', 'Netflix'
1212
instruction 'Bundle-DocURL', 'https://github.com/Netflix/RxJava'
13-
instruction 'Import-Package', '!org.junit,!junit.framework,!org.mockito.*,*'
1413
}
1514
}
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
dependencies {
22
compile project(':rxjava-core')
33
testCompile project(":rxjava-core").sourceSets.test.output
4-
provided 'junit:junit-dep:4.10'
5-
provided 'org.mockito:mockito-core:1.8.5'
4+
testCompile 'junit:junit-dep:4.10'
5+
testCompile 'org.mockito:mockito-core:1.8.5'
66
}
77

88
jar {
99
manifest {
1010
name = 'rxjava-async-util'
1111
instruction 'Bundle-Vendor', 'Netflix'
1212
instruction 'Bundle-DocURL', 'https://github.com/Netflix/RxJava'
13-
instruction 'Import-Package', '!org.junit,!junit.framework,!org.mockito.*,*'
1413
}
1514
}

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,5 @@ jar {
99
name = 'rxjava-computation-expressions'
1010
instruction 'Bundle-Vendor', 'Netflix'
1111
instruction 'Bundle-DocURL', 'https://github.com/Netflix/RxJava'
12-
instruction 'Import-Package', '!org.junit,!junit.framework,!org.mockito.*,*'
1312
}
1413
}
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
dependencies {
22
compile project(':rxjava-core')
33
testCompile project(":rxjava-core").sourceSets.test.output
4-
provided 'junit:junit-dep:4.10'
5-
provided 'org.mockito:mockito-core:1.8.5'
4+
testCompile 'junit:junit-dep:4.10'
5+
testCompile 'org.mockito:mockito-core:1.8.5'
66
}
77

88
jar {
99
manifest {
1010
name = 'rxjava-string'
1111
instruction 'Bundle-Vendor', 'Netflix'
1212
instruction 'Bundle-DocURL', 'https://github.com/Netflix/RxJava'
13-
instruction 'Import-Package', '!org.junit,!junit.framework,!org.mockito.*,*'
1413
}
1514
}
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
dependencies {
22
compile project(':rxjava-core')
3-
provided 'junit:junit-dep:4.10'
4-
provided 'org.mockito:mockito-core:1.8.5'
3+
testCompile 'junit:junit-dep:4.10'
4+
testCompile 'org.mockito:mockito-core:1.8.5'
55
}
66

77
jar {
88
manifest {
99
name = 'rxjava-swing'
1010
instruction 'Bundle-Vendor', 'Netflix'
1111
instruction 'Bundle-DocURL', 'https://github.com/Netflix/RxJava'
12-
instruction 'Import-Package', '!org.junit,!junit.framework,!org.mockito.*,*'
1312
}
1413
}

rxjava-core/build.gradle

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
apply plugin: 'maven'
22

33
dependencies {
4-
provided 'junit:junit-dep:4.10'
5-
provided 'org.mockito:mockito-core:1.8.5'
4+
testCompile 'junit:junit-dep:4.10'
5+
testCompile 'org.mockito:mockito-core:1.8.5'
66
}
77

88
jar {
99
manifest {
1010
name = 'rxjava-core'
1111
instruction 'Bundle-Vendor', 'Netflix'
1212
instruction 'Bundle-DocURL', 'https://github.com/Netflix/RxJava'
13-
instruction 'Import-Package', '!org.junit,!junit.framework,!org.mockito.*,*'
1413
}
1514
}
1615

0 commit comments

Comments
 (0)