summaryrefslogtreecommitdiffstats
path: root/WORKSPACE
Commit message (Collapse)AuthorAgeFilesLines
* Bump minimum Bazel version to 0.26.1David Ostrovsky2019-06-101-1/+1
| | | | | Change-Id: I8d6f9eac5af54e5b270e7db4e52d1b4063c1aa56 Signed-off-by: David Ostrovsky <david@ostrovsky.org>
* Bazel: Bump skylib library version to 0.8.0David Ostrovsky2019-06-101-3/+3
| | | | | Change-Id: I2089899c9f197b2c93b93390fdd55f6fe11e5ce4 Signed-off-by: David Ostrovsky <david@ostrovsky.org>
* Upgrade Bouncy Castle to 1.61Brandon Weeks2019-06-011-7/+7
| | | | | | | | | | | | Also now use JcaKeyBoxBuilder constructor in BouncyCastleGpgKeyLocator.readKeyBoxFile(Path). CQ: 19868 CQ: 19869 CQ: 19870 Change-Id: I45bd80e158aecd90448b0c7e59615db27aaef892 Signed-off-by: Brandon Weeks <bweeks@google.com> Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* Bazel: Simplify names of bouncy castle librariesDavid Ostrovsky2019-05-161-3/+3
| | | | | | | | Name bouncy castle libraries consistently. This also allows to use local jgit tree as dependency in gerrit. Change-Id: Ie0a995a70ecee907d25b3cdda9034a25c0290efe Signed-off-by: David Ostrovsky <david@ostrovsky.org>
* Apache MINA sshd client: adapt to sshd 2.2.0Thomas Wolf2019-05-061-5/+5
| | | | | | | | | | | | | | Update target platforms, maven and bazel builds to use sshd 2.2.0. Adapt internal classes to changed sshd interfaces and remove previous work-arounds for asking repeatedly for key passwords and for loading keys lazily; both are now done by sshd. CQ: 19034 CQ: 19035 Bug: 541425 Change-Id: I85e1df6ebb8a94953a912d9b2b8a7b5bdfbd608a Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch> Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* Update target platform, maven and bazel builds to JSch 0.1.55Thomas Wolf2019-04-251-2/+2
| | | | | | | | | | | Same version as used in the latest Eclipse platform. Updating the JGit target platform results in the new JSch version being included in the JGit feature in the p2 repo, and thus ultimately in the EGit update site. CQ: 19588 Bug: 546130 Change-Id: Id7e4318096f6f29dc4573e15542abdf54582af34 Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
* Add 4.11-staging target platform and update Orbit to I20190123233226Matthias Sohn2019-01-271-4/+4
| | | | | | | | | | | Update - org.apache.httpcomponents.httpcore to 4.4.10.v20190123-2214 - org.apache.httpcomponents.httpclient.source to 4.5.6.v20190123-2215 - org.bouncycastle.bcpg to 1.60.0.v20181210-2057 - org.bouncycastle.pkix to 1.60.0.v20181210-2057 - org.bouncycastle.prov to 1.60.0.v20181210-2057 Change-Id: I132b6686aa29b2a76cc529f7cae34115604c754d Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* Implement signing commits using BouncyCastleMedha Bhargav Prabhala2019-01-161-0/+23
| | | | | | | | | | | | | This also includes a change to generating the jgit CLI jar. Shading is no longer possible because it breaks the signature of BouncyCastle. Instead, the Spring Boot Loader Maven plug-in is now used to generate an executable jar. Bug: 382212 Change-Id: I35ee3d4b06d9d479475ab2e51b29bed49661bbdc Also-by: Gunnar Wagenknecht <gunnar@wagenknecht.org> Signed-off-by: Gunnar Wagenknecht <gunnar@wagenknecht.org> Signed-off-by: Medha Bhargav Prabhala <mprabhala@salesforce.com> Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* Update Jetty to 9.4.14Matthias Sohn2019-01-151-13/+13
| | | | Change-Id: I255d4d03a35bf7701b021339623dfb8c28d24c35 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* Update org.tukaani.xz to 1.8.0.v20180207-1613Matthias Sohn2018-12-241-2/+2
| | | | | CQ: 18321 Change-Id: I49f47748e7753146c0d696b2bd381d2d3465691e Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* Apache MINA sshd client: enable support for ed25519 keysThomas Wolf2018-12-021-0/+6
| | | | | | | | | | | | | | | Include the net.i2p.crypto.eddsa bundle via a hard dependency. Add tests for dealing with ed25519 host keys and user key files. Manual tests: fetching from git.eclipse.org with an ed25519 user key, and pushing this change itself using the same ed25519 key. Note that sshd 2.0.0 does not yet support encrypted ed25519 private keys. Bug: 541272 Change-Id: I7072f4014d9eca755b4a2412e19c086235e5eae9 Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
* Update Apache commons compress to 1.18.0Matthias Sohn2018-11-281-2/+2
| | | | | | | | | | | to consume fix for vulnerability [1] in Apache commons compress which is fixed in version 1.18. [1] https://nvd.nist.gov/vuln/detail/CVE-2018-1324 CQ: 18320 Change-Id: I39b1d815e5b8e0208600afafe7a72bb603d04fb8 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* Fix running tests from bazelMatthias Sohn2018-11-281-0/+26
| | | | | | | | The new dependency to mockito for JDKHttpConnectionTest wasn't added for bazel test run. Change-Id: Ie967b7152340a0b3e05cced7eadfd40af78d9995 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* Bazel: Consume versions directly from lib:versions.bzl in skylibDavid Pursehouse2018-11-071-1/+1
| | | | | | | | | | Avoid loading versions from @bazel_skylib//:lib.bzl, because it is now deprecated and is going to be removed in future skylib versions: https://github.com/bazelbuild/bazel-skylib/blob/master/lib.bzl#L17 Change-Id: Ie722351de5254f611cf3489c8689922c8346af7f Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
* Ssh tests with an Apache MINA sshd test git serverThomas Wolf2018-11-061-0/+12
| | | | | | | | | | | | | | | | Add a simple ssh git server based on Apache MINA sshd, and use it in new tests that verify ssh operations and in particular a number of bugs that had cropped up over time in JSch. The git server supports fetching only, and sftp access. The tests are all in an abstract base class; the concrete JschSshTest class only provides ssh-specific test setup. So the same tests could be run easily also with some other ssh client. Bug: 520927 Change-Id: Ide6687b717fb497a29fc83f22b07390a26dfce1d Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
* Upgrade to Bazel 0.19.0David Ostrovsky2018-11-011-1/+1
| | | | | | | | | Also replace native git_repository rule with Starlark rule. This is needed because in recent Bazel versions native git_repository rule is deprecated. Change-Id: I2c19fd31693a930d7d35fdbb93bfa4abf21fa2aa Signed-off-by: David Ostrovsky <david@ostrovsky.org>
* Bazel: Require minimum bazel version 0.17.1David Pursehouse2018-10-101-0/+13
| | | | | | | | | | | | | Check the bazel version using the checker from bazel_skylib, and require at least version 0.17.1 which is the minimum version that does not suffer from the Java API mismatch issue [1]. The implementation is borrowed from the Gerrit project. [1] https://github.com/bazelbuild/bazel/issues/6027 Change-Id: I224250088a1f5072fcaa3ec81228f4d2cb8cb389 Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
* Bazel: Use hyphen instead of underscore in external repository namesDavid Pursehouse2018-08-301-15/+15
| | | | | | | | | | | | | | Recent Bazel versions support the hyphen character in external repository names. On the Gerrit project, the repository names were harmonized to consistently use hyphen. As a side effect, it is no longer possible to build jgit from source in the gerrit tree, due to the different repository names. Rename the dependencies to use hyphens, consistent with gerrit. Change-Id: Ideebd858ddd3f0e6f765643001642dfb6c12441f Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
* Update bazel dependencies to match maven dependenciesMatthias Sohn2018-08-201-12/+12
| | | | | | | | | | | | | Update - jsch to 0.1.54 - httpclient to 4.5.5 - httpcore to 4.4.9 - commons-codec to 1.10 - commons-logging to 1.2 - junit to 4.12 Change-Id: I84eeb8dd786e68dd03079ae2c2aef5d7286dfb56 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* Update Jetty to 9.4.11.v20180605Matthias Sohn2018-08-181-13/+13
| | | | Change-Id: I1d2ad0536a0fd02361e17d0175eaeca2c047660c Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* Upgrade gson to version 2.8.2David Pursehouse2018-01-201-2/+2
| | | | | | | | CQ: 15286 CQ: 15287 (Orbit) Change-Id: I43312d5276b64d871f7fa253a43a090f9b163724 Signed-off-by: David Pursehouse <david.pursehouse@gmail.com> Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* Upgrade commons-compress to 1.15David Pursehouse2018-01-191-4/+4
| | | | | | | | | | | | | | | Also update xz to 1.6 as this is the version commons-compress 1.15 wants. Since xz 1.6 is an optional dependency for commons-compress we need to add a non-optional dependency to xz for org.eclipse.jgit.pgm.test since one of the tests explicitly requires xz. Related change adding commons-compress to Orbit: https://git.eclipse.org/r/#/c/115366/ CQ: 15356 CQ: 15360 Change-Id: I0d61c71bc541cc30464a0fff93775b079dd3ba88 Signed-off-by: David Pursehouse <david.pursehouse@gmail.com> Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* Add com.jcraft.jzlib 1.1.1Matthias Sohn2018-01-041-0/+6
| | | | | | | | | | com.jcraft.jsch requires com.jcraft.jzlib to provide optional zlib packet compression support. Add this library so that jgit can handle packet compression. CQ: 15292 Bug: 529129 Change-Id: I0297bd0488753547a5f5d47dbf0db508a79dd265 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* Update Apache httpclient to 4.5.2 and httpcore to 4.4.6Matthias Sohn2017-12-131-4/+4
| | | | | | | CQ: 15051 CQ: 15052 Change-Id: I532cd73253601ce1d2926850af2519aae6744a9c Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* Update Jetty to 9.4.8.v20171121Matthias Sohn2017-11-291-13/+13
| | | | Change-Id: I4ea421758e3469a59fa4fbbf46ce86757dd267e9 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* Upgrade args4j to 2.33 in the bazel buildDavid Pursehouse2017-09-011-2/+2
| | | | Change-Id: Ic440657e3da53b643f79fbcdde45d4e659bc166d
* Update jetty to 9.4.5Mat Booth2017-05-111-13/+13
| | | | | | | | | | * Adapt to API removals in jetty 9.4+ * Manifests changed to restrict jetty to [9.4.5,10.0.0) Bug: 514336 Bug: 516514 Change-Id: Ifcfd968084dfa6db0ae07cf541d33a6cdedc1ee2 Signed-off-by: Mat Booth <mat.booth@redhat.com> Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* Downgrade Jetty to 9.3.17.v20170317 in Bazel buildDavid Pursehouse2017-04-031-13/+13
| | | | | | | | Jetty was downgraded on stable-4.6 which doesn't have a Bazel build. Change-Id: Ibeb91436169e852a4241189f80e4895b54ce3cd0 Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
* Update Jetty to 9.4.3.v20170317Matthias Sohn2017-03-221-13/+13
| | | | Change-Id: I900c74bb76b6cfaee838e6f79d80c9b2840806df Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
* Add remaining parts of the bazel buildDavid Ostrovsky2017-03-211-0/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add bazel build for ui and junit.http, and the test packages. A number of different test labels are supported: api attributes dfs diff http lfs lfs-server nls notes pack patch pgm reftree revplot revwalk storage submodule symlinks transport treewalk util To run all tests: bazel test //... To run specific tests, using labels: bazel test --test_tag_filters=api,dfs,revplot,treewalk //... Change-Id: Ic41b05a79d855212e67b1b4707e9c6b4dc9ea70d Signed-off-by: David Ostrovsky <david@ostrovsky.org> Signed-off-by: Jonathan Nieder <jrn@google.com>
* Format Bazel files with buildifierDavid Pursehouse2017-01-221-48/+51
| | | | | Change-Id: I934114315d2c7cab917f1011b8e55c52367d429f Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
* Implement initial framework of Bazel buildDavid Ostrovsky2017-01-181-0/+97
The initial implementation only builds the packages consumed by Gerrit Code Review. Test build and execution is not implemented. We prefer to consume maven_jar custom rule from bazlets repository, for the same reasons as in the Gerrit project: * Caching artifacts across different clones and projects * Exposing source classifiers and neverlink artifact TEST PLAN: $ bazel build :all $ unzip -t bazel-genfiles/all.zip Archive: bazel-genfiles/all.zip testing: libjgit-archive.jar OK testing: libjgit-servlet.jar OK testing: libjgit.jar OK testing: libjunit.jar OK No errors detected in compressed data of bazel-genfiles/all.zip. Change-Id: Ia837ce95d9829fe2515f37b7a04a71a4598672a0 Signed-off-by: David Ostrovsky <david@ostrovsky.org> Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>