Skip to content

Commit d1dff55

Browse files
committed
Updated OSGi bundling (Fixes #255 again)
1 parent ac2720b commit d1dff55

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

build.gradle

+10-9
Original file line numberDiff line numberDiff line change
@@ -79,17 +79,18 @@ jar.dependsOn writeSshjVersionProperties
7979

8080
jar {
8181
manifest {
82+
// please see http://bnd.bndtools.org/chapters/390-wrapping.html
8283
instruction "Bundle-Description", "SSHv2 library for Java"
8384
instruction "Bundle-License", "http://www.apache.org/licenses/LICENSE-2.0.txt"
84-
instruction "Import-Package", "!net.schmizz.*"
85-
instruction "Import-Package", "javax.crypto*"
86-
instruction "Import-Package", "!net.i2p.crypto.eddsa.math"
87-
instruction "Import-Package", "net.i2p*"
88-
instruction "Import-Package", "com.jcraft.jzlib*;version=\"[1.1,2)\";resolution:=optional"
89-
instruction "Import-Package", "org.slf4j*;version=\"[1.7,5)\""
90-
instruction "Import-Package", "org.bouncycastle*"
91-
instruction "Import-Package", "*"
92-
instruction "Export-Package", "net.schmizz.*"
85+
instruction "Import-Package", \
86+
"com.jcraft.jzlib*;version=\"[1.1,2)\";resolution:=optional", \
87+
"!com.hierynomus.sshj.*", "!net.schmizz.*", \
88+
"!net.i2p.crypto.eddsa.math", \
89+
"*"
90+
instruction "Require-Bundle", \
91+
"bcprov;bundle-version=\"$bouncycastleVersion\";resolution:=optional", \
92+
"bcprov;bundle-version=\"$bouncycastleVersion\";resolution:=optional"
93+
instruction "Export-Package", "com.hierynomus.sshj.*", "net.schmizz.*"
9394
}
9495
}
9596

0 commit comments

Comments
 (0)