From ae5fa6cee1f80e4b3f2c7814d081a2275704b29b Mon Sep 17 00:00:00 2001 From: gurkerl83 Date: Wed, 6 May 2020 13:37:41 +0200 Subject: [PATCH] Do not expect package com.oracle.svm at OSGi runtime In the current build process, some SVM substitutions got integrated to generate a native-image of the library. From an OSGi perspective, the integration of Oracles, respectively, Graal's substrate dependency causes an unintentional statement in the manifest.mf of the build result expecting a package called com.oracle.svm. This pull request adjusts the osgi.bnd file to avoid the com.oracle.svm package from being required when the bundle gets executed in an OSGi runtime. Expose also drivers internal package Libraries such as neo4j-ogm and its modules neo4j-ogm-bolt-driver and neo4j-ogm-bolt-native-types require access to the internal package of the neo4j java driver. To hide the internal package from the outside world classes used in neo4j-ogm such as InternalBookmark, Scheme has to be relocated to different package in further refactoring. For now, in OSGi work with neo4j-ogm and the bolt driver, especially the entire internal module, has to be exposed. --- driver/osgi.bnd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver/osgi.bnd b/driver/osgi.bnd index 98ae4be1e5..cbabb0cd69 100644 --- a/driver/osgi.bnd +++ b/driver/osgi.bnd @@ -1,11 +1,11 @@ package-version=${version;===;${Bundle-Version}} Export-Package: \ - !*.internal.*, \ *;version="${package-version}" Import-Package: \ !io.netty.*, \ + !com.oracle.svm.*, \ javax.security.cert, \ *