diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2020-04-27 00:58:28 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2020-06-01 01:26:22 +0200 |
commit | 77848d635b76d8294697ffaf11acf51256df2a5b (patch) | |
tree | 9a91a25512d2dff89bb9cc0b336279eef2df18e5 /pom.xml | |
parent | 0b2d41b8584e16d6f7abeca92eaae326033b4489 (diff) | |
download | jgit-77848d635b76d8294697ffaf11acf51256df2a5b.tar.gz jgit-77848d635b76d8294697ffaf11acf51256df2a5b.zip |
Decouple BouncyCastle from JGit Core
Motivation: BouncyCastle serves as 'default' implementation of
the GPG Signer. If a client application does not use it there is no need
to pull in this dependency, especially since BouncyCastle is a large
library.
Move the classes depending on BouncyCastle to an OSGi fragment extending
the org.eclipse.jgit bundle. They are moved to a distinct internal
package in order to avoid split packages. This doesn't break public API
since these classes were already in an internal package before this
change.
Add a new feature org.eclipse.jgit.gpg.bc to enable installation. With
that users can now decide if they want to install it.
Attempts to sign a commit if org.eclipse.jgit.gpg.bc isn't available
will result in ServiceUnavailableException being thrown.
Bug: 559106
Change-Id: I42fd6c00002e17aa9a7be96ae434b538ea86ccf8
Also-by: Michael Dardis <git@md-5.net>
Signed-off-by: Michael Dardis <git@md-5.net>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Signed-off-by: David Ostrovsky <david@ostrovsky.org>
Diffstat (limited to 'pom.xml')
-rw-r--r-- | pom.xml | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -766,7 +766,7 @@ <dependency> <groupId>org.bouncycastle</groupId> <artifactId>bcprov-jdk15on</artifactId> - <version>${bouncycastle-version}</version> + <version>1.65.01</version> </dependency> <dependency> @@ -988,6 +988,7 @@ <module>org.eclipse.jgit.ant</module> <module>org.eclipse.jgit.archive</module> <module>org.eclipse.jgit.ui</module> + <module>org.eclipse.jgit.gpg.bc</module> <module>org.eclipse.jgit.http.apache</module> <module>org.eclipse.jgit.http.server</module> <module>org.eclipse.jgit.ssh.apache</module> @@ -1000,6 +1001,7 @@ <module>org.eclipse.jgit.test</module> <module>org.eclipse.jgit.ant.test</module> + <module>org.eclipse.jgit.gpg.bc.test</module> <module>org.eclipse.jgit.http.test</module> <module>org.eclipse.jgit.pgm.test</module> <module>org.eclipse.jgit.lfs.test</module> |