diff --git a/hystrix-core/build.gradle b/hystrix-core/build.gradle index 2a556adf9..3a9603fd9 100644 --- a/hystrix-core/build.gradle +++ b/hystrix-core/build.gradle @@ -1,6 +1,7 @@ apply plugin: 'java' apply plugin: 'eclipse' apply plugin: 'idea' +apply plugin: 'osgi' dependencies { compile 'com.netflix.archaius:archaius-core:0.4.1' @@ -44,3 +45,14 @@ idea { } } + +jar { + manifest { + name = 'hystrix-core' + instruction 'Bundle-Vendor', 'Netflix' + instruction 'Bundle-DocURL', 'https://github.com/Netflix/Hystrix' + instruction 'Import-Package', '!org.junit,!junit.framework,!org.mockito.*,*' + instruction 'Eclipse-ExtensibleAPI', 'true' + instruction 'Embed-Dependency', '*;scope=compile' + } +} diff --git a/hystrix-examples/build.gradle b/hystrix-examples/build.gradle index 90afb1353..6466b9dc9 100644 --- a/hystrix-examples/build.gradle +++ b/hystrix-examples/build.gradle @@ -1,6 +1,7 @@ apply plugin: 'java' apply plugin: 'eclipse' apply plugin: 'idea' +apply plugin: 'osgi' dependencies { compile project(':hystrix-core') @@ -27,3 +28,13 @@ idea { scopes.COMPILE.plus += configurations.provided } } + +jar { + manifest { + name = 'hystrix-examples' + instruction 'Bundle-Vendor', 'Netflix' + instruction 'Bundle-DocURL', 'https://github.com/Netflix/Hystrix' + instruction 'Import-Package', '!org.junit,!junit.framework,!org.mockito.*,*' + instruction 'Eclipse-ExtensibleAPI', 'true' + } +} \ No newline at end of file