mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-06 07:10:53 +03:00
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:
19
build.gradle
19
build.gradle
@@ -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.*"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user