killbill-memoizeit

jruby: add support for OpenSSL with JRuby * Add default imports/exports *

1/21/2014 3:20:59 AM

Details

diff --git a/osgi-bundles/bundles/jruby/pom.xml b/osgi-bundles/bundles/jruby/pom.xml
index 5900232..f967dde 100644
--- a/osgi-bundles/bundles/jruby/pom.xml
+++ b/osgi-bundles/bundles/jruby/pom.xml
@@ -65,7 +65,7 @@
         <dependency>
             <groupId>org.jruby</groupId>
             <artifactId>jruby-complete</artifactId>
-            <version>1.7.1</version>
+            <version>1.7.10</version>
         </dependency>
         <dependency>
             <groupId>com.google.guava</groupId>
@@ -163,10 +163,16 @@
                             com.ning.billing.util.template;
                             com.ning.billing.util.template.translation;resolution:=optional,
                             org.joda.time;org.joda.time.format;resolution:=optional,
+                            sun.misc;
+                            sun.misc.*;
+                            sun.misc.unsafe;
+                            sun.misc.unsafe.*;
                             javax.management;
                             javax.management.*;
                             javax.crypto;
                             javax.crypto.*;
+                            javax.crypto.spec;
+                            javax.crypto.spec.*;
                             javax.net;
                             javax.net.*;
                             javax.net.ssl;
diff --git a/util/src/main/java/com/ning/billing/util/config/OSGIConfig.java b/util/src/main/java/com/ning/billing/util/config/OSGIConfig.java
index 7bf64d1..e744db1 100644
--- a/util/src/main/java/com/ning/billing/util/config/OSGIConfig.java
+++ b/util/src/main/java/com/ning/billing/util/config/OSGIConfig.java
@@ -76,6 +76,9 @@ public interface OSGIConfig extends KillbillConfig {
              // need the bundles to see them for them to be able to register their servlets.
              // Note: bundles should mark javax.servlet:servlet-api as provided
              "sun.misc," +
+             "sun.misc.unsafe," +
+             "javax.crypto," +
+             "javax.crypto.spec," +
              "javax.management," +
              "javax.servlet;version=3.0," +
              "javax.servlet.http;version=3.0," +