From 2b29196ee2ee0e3cac5cf1fb452d36a2d829a24f Mon Sep 17 00:00:00 2001 From: lburgazzoli Date: Tue, 5 Jan 2016 09:22:11 +0100 Subject: [PATCH] Make OkHttp OSGi ready --- okhttp-apache/pom.xml | 15 +++++++++++++++ okhttp-logging-interceptor/pom.xml | 21 +++++++++++++++++++++ okhttp-urlconnection/pom.xml | 24 ++++++++++++++++++++++++ okhttp-ws/pom.xml | 18 ++++++++++++++++++ okhttp/pom.xml | 20 ++++++++++++++++++++ pom.xml | 18 ++++++++++++++++++ 6 files changed, 116 insertions(+) diff --git a/okhttp-apache/pom.xml b/okhttp-apache/pom.xml index 6e9a797cd..3355b9d30 100644 --- a/okhttp-apache/pom.xml +++ b/okhttp-apache/pom.xml @@ -9,6 +9,7 @@ 3.0.0-SNAPSHOT + bundle okhttp-apache OkHttp Apache HttpClient @@ -56,6 +57,20 @@ + + org.apache.felix + maven-bundle-plugin + true + + + ${project.groupId}.${project.artifactId} + ${project.version} + + okhttp3.apache.* + + + + diff --git a/okhttp-logging-interceptor/pom.xml b/okhttp-logging-interceptor/pom.xml index 011ed00fb..7d0c8a9aa 100644 --- a/okhttp-logging-interceptor/pom.xml +++ b/okhttp-logging-interceptor/pom.xml @@ -9,6 +9,7 @@ 3.0.0-SNAPSHOT + bundle logging-interceptor OkHttp Logging Interceptor @@ -37,4 +38,24 @@ test + + + + + + org.apache.felix + maven-bundle-plugin + true + + + ${project.groupId}.${project.artifactId} + ${project.version} + + okhttp3.logging.* + + + + + + diff --git a/okhttp-urlconnection/pom.xml b/okhttp-urlconnection/pom.xml index c093648fd..13937e5b3 100644 --- a/okhttp-urlconnection/pom.xml +++ b/okhttp-urlconnection/pom.xml @@ -9,6 +9,7 @@ 3.0.0-SNAPSHOT + bundle okhttp-urlconnection OkHttp URLConnection @@ -50,6 +51,29 @@ + + + org.apache.felix + maven-bundle-plugin + true + + + ${project.groupId}.${project.artifactId} + ${project.version} + + com.squareup.okhttp3.okhttp + + + !okhttp3.internal.*, + okhttp3.*;-split-package:=merge-first + + + android.*;resolution:=optional, + * + + + + diff --git a/okhttp-ws/pom.xml b/okhttp-ws/pom.xml index c28edd0c9..6d6de134b 100644 --- a/okhttp-ws/pom.xml +++ b/okhttp-ws/pom.xml @@ -9,6 +9,7 @@ 3.0.0-SNAPSHOT + bundle okhttp-ws OkHttp Web Sockets @@ -32,6 +33,23 @@ + + + + org.apache.felix + maven-bundle-plugin + true + + + ${project.groupId}.${project.artifactId} + ${project.version} + + !okhttp3.internal.ws.*, + okhttp3.ws.*;-noimport:=true + + + + diff --git a/okhttp/pom.xml b/okhttp/pom.xml index 01fd8200b..5c463b9e0 100644 --- a/okhttp/pom.xml +++ b/okhttp/pom.xml @@ -9,6 +9,7 @@ 3.0.0-SNAPSHOT + bundle okhttp OkHttp @@ -48,6 +49,25 @@ + + org.apache.felix + maven-bundle-plugin + true + + + ${project.groupId}.${project.artifactId} + ${project.version} + + okhttp3.internal.*;-noimport:=true, + okhttp3.*;-noimport:=true + + + android.*;resolution:=optional, + * + + + + diff --git a/pom.xml b/pom.xml index 9e0458504..169f14a01 100644 --- a/pom.xml +++ b/pom.xml @@ -58,6 +58,9 @@ 4.11 + + + 3.0.1 @@ -168,6 +171,21 @@ maven-javadoc-plugin 2.9 + + + org.apache.felix + maven-bundle-plugin + ${maven.bundle.plugin.version} + true + + + + manifest + + + + +