From a9e1b0f29e85d3f249920a199427dc72f9ed420d Mon Sep 17 00:00:00 2001 From: Ben Christensen Date: Mon, 11 Mar 2013 20:32:34 -0700 Subject: [PATCH] Add OSGi manifest headers https://github.com/Netflix/RxJava/issues/154 I can't confirm that these work but submitting based on discussion on issue #154. --- build.gradle | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/build.gradle b/build.gradle index edff7a24..6813752f 100644 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,7 @@ apply plugin: 'scala' apply plugin: 'eclipse' apply plugin: 'idea' +apply plugin: 'osgi' tasks.withType(ScalaCompile) { scalaCompileOptions.fork = true @@ -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.*,*' + } } \ No newline at end of file