Skip to content

Commit

Permalink
Add OSGi manifest headers
Browse files Browse the repository at this point in the history
ReactiveX#154

I can't confirm that these work but submitting based on discussion on issue ReactiveX#154.
  • Loading branch information
benjchristensen committed Mar 12, 2013
1 parent 4e2b666 commit bf553b9
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 1 deletion.
10 changes: 9 additions & 1 deletion language-adaptors/rxjava-clojure/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apply plugin: 'java'
apply plugin: 'clojure'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'osgi'

dependencies {
compile project(':rxjava-core')
Expand Down Expand Up @@ -75,4 +76,11 @@ configurations {
// include 'examples' in build task
build.dependsOn examplesClasses


jar {
manifest {
name = 'rxjava-clojure'
instruction 'Bundle-Vendor', 'Netflix'
instruction 'Bundle-DocURL', 'https://github.com/Netflix/RxJava'
instruction 'Import-Package', '!org.junit,!junit.framework,!org.mockito.*,*'
}
}
10 changes: 10 additions & 0 deletions language-adaptors/rxjava-groovy/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'osgi'

dependencies {
compile project(':rxjava-core')
Expand Down Expand Up @@ -39,4 +40,13 @@ idea {
// include 'provided' dependencies on the classpath
scopes.PROVIDED.plus += configurations.provided
}
}

jar {
manifest {
name = 'rxjava-groovy'
instruction 'Bundle-Vendor', 'Netflix'
instruction 'Bundle-DocURL', 'https://github.com/Netflix/RxJava'
instruction 'Import-Package', '!org.junit,!junit.framework,!org.mockito.*,*'
}
}
10 changes: 10 additions & 0 deletions language-adaptors/rxjava-jruby/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'osgi'

dependencies {
compile project(':rxjava-core')
Expand All @@ -24,4 +25,13 @@ idea {
// include 'provided' dependencies on the classpath
scopes.PROVIDED.plus += configurations.provided
}
}

jar {
manifest {
name = 'rxjava-jruby'
instruction 'Bundle-Vendor', 'Netflix'
instruction 'Bundle-DocURL', 'https://github.com/Netflix/RxJava'
instruction 'Import-Package', '!org.junit,!junit.framework,!org.mockito.*,*'
}
}
10 changes: 10 additions & 0 deletions language-adaptors/rxjava-scala/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apply plugin: 'scala'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'osgi'

tasks.withType(ScalaCompile) {
scalaCompileOptions.fork = true
Expand Down Expand Up @@ -50,4 +51,13 @@ idea {
// include 'provided' dependencies on the classpath
scopes.PROVIDED.plus += configurations.provided
}
}

jar {
manifest {
name = 'rxjava-scala'
instruction 'Bundle-Vendor', 'Netflix'
instruction 'Bundle-DocURL', 'https://github.com/Netflix/RxJava'
instruction 'Import-Package', '!org.junit,!junit.framework,!org.mockito.*,*'
}
}
10 changes: 10 additions & 0 deletions rxjava-core/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'osgi'

sourceCompatibility = JavaVersion.VERSION_1_6
targetCompatibility = JavaVersion.VERSION_1_6
Expand Down Expand Up @@ -42,3 +43,12 @@ javadoc {
options.addStringOption('top').value = '<h2 class="title" style="padding-top:40px">RxJava</h2>'
}

jar {
manifest {
name = 'rxjava-core'
instruction 'Bundle-Vendor', 'Netflix'
instruction 'Bundle-DocURL', 'https://github.com/Netflix/RxJava'
instruction 'Import-Package', '!org.junit,!junit.framework,!org.mockito.*,*'
}
}

0 comments on commit bf553b9

Please sign in to comment.