converts bouncycastle OSGi dep from Import-Bundle to Import-Package

Import-Bundle is generally discouraged by OSGi best practices.

See http://stackoverflow.com/questions/1865819/when-should-i-use-import-package-and-when-should-i-use-require-bundle for more info.
This commit is contained in:
João Nelas
2017-01-12 14:26:59 +00:00
parent d1dff550ce
commit aafb9942a3

View File

@@ -82,15 +82,16 @@ jar {
// please see http://bnd.bndtools.org/chapters/390-wrapping.html
instruction "Bundle-Description", "SSHv2 library for Java"
instruction "Bundle-License", "http://www.apache.org/licenses/LICENSE-2.0.txt"
instruction "Import-Package", \
"com.jcraft.jzlib*;version=\"[1.1,2)\";resolution:=optional", \
"!com.hierynomus.sshj.*", "!net.schmizz.*", \
"!net.i2p.crypto.eddsa.math", \
"*"
instruction "Require-Bundle", \
"bcprov;bundle-version=\"$bouncycastleVersion\";resolution:=optional", \
"bcprov;bundle-version=\"$bouncycastleVersion\";resolution:=optional"
instruction "Export-Package", "com.hierynomus.sshj.*", "net.schmizz.*"
instruction "Import-Package", "!net.schmizz.*"
instruction "Import-Package", "javax.crypto*"
instruction "Import-Package", "!net.i2p.crypto.eddsa.math"
instruction "Import-Package", "net.i2p*"
instruction "Import-Package", "com.jcraft.jzlib*;version=\"[1.1,2)\";resolution:=optional"
instruction "Import-Package", "org.slf4j*;version=\"[1.7,5)\""
instruction "Import-Package", "org.bouncycastle*;resolution:=optional"
instruction "Import-Package", "org.bouncycastle.jce.provider;resolution:=optional"
instruction "Import-Package", "*"
instruction "Export-Package", "net.schmizz.*"
}
}