From cdc88247b9aabade23db90dbc3541eda989957f4 Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Wed, 3 Jan 2018 01:09:57 +0100 Subject: [PATCH] Add com.jcraft.jzlib 1.1.1 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 --- WORKSPACE | 6 ++++++ lib/BUILD | 9 +++++++++ .../org.eclipse.jgit.feature/feature.xml | 7 +++++++ .../org.eclipse.jgit.target/jgit-4.5.target | 4 +++- .../org.eclipse.jgit.target/jgit-4.6.target | 4 +++- .../org.eclipse.jgit.target/jgit-4.7.target | 4 +++- .../org.eclipse.jgit.target/jgit-4.8.target | 4 +++- .../orbit/R20170919201930-Oxygen.tpd | 2 ++ .../orbit/S20170912163609-Photon.tpd | 2 ++ org.eclipse.jgit/BUILD | 1 + org.eclipse.jgit/pom.xml | 5 +++++ pom.xml | 7 +++++++ 12 files changed, 51 insertions(+), 4 deletions(-) diff --git a/WORKSPACE b/WORKSPACE index d3caf1bf38..205d467f73 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -15,6 +15,12 @@ maven_jar( sha1 = "658b682d5c817b27ae795637dfec047c63d29935", ) +maven_jar( + name = "jzlib", + artifact = "com.jcraft:jzlib:1.1.1", + sha1 = "a1551373315ffc2f96130a0e5704f74e151777ba", +) + maven_jar( name = "javaewah", artifact = "com.googlecode.javaewah:JavaEWAH:1.1.6", diff --git a/lib/BUILD b/lib/BUILD index 703e7befc6..d2622674e1 100644 --- a/lib/BUILD +++ b/lib/BUILD @@ -113,6 +113,15 @@ java_library( exports = ["@jsch//jar"], ) +java_library( + name = "jzlib", + visibility = [ + "//org.eclipse.jgit:__pkg__", + "//org.eclipse.jgit.test:__pkg__", + ], + exports = ["@jzlib//jar"], +) + java_library( name = "junit", testonly = 1, diff --git a/org.eclipse.jgit.packaging/org.eclipse.jgit.feature/feature.xml b/org.eclipse.jgit.packaging/org.eclipse.jgit.feature/feature.xml index 0314806b52..4a54a31ac4 100644 --- a/org.eclipse.jgit.packaging/org.eclipse.jgit.feature/feature.xml +++ b/org.eclipse.jgit.packaging/org.eclipse.jgit.feature/feature.xml @@ -79,4 +79,11 @@ version="0.0.0" unpack="false"/> + + diff --git a/org.eclipse.jgit.packaging/org.eclipse.jgit.target/jgit-4.5.target b/org.eclipse.jgit.packaging/org.eclipse.jgit.target/jgit-4.5.target index e3d9e4d45f..cbfe7d6f74 100644 --- a/org.eclipse.jgit.packaging/org.eclipse.jgit.target/jgit-4.5.target +++ b/org.eclipse.jgit.packaging/org.eclipse.jgit.target/jgit-4.5.target @@ -1,7 +1,7 @@ - + @@ -62,6 +62,8 @@ + + diff --git a/org.eclipse.jgit.packaging/org.eclipse.jgit.target/jgit-4.6.target b/org.eclipse.jgit.packaging/org.eclipse.jgit.target/jgit-4.6.target index 4c7944110d..6ee6f04971 100644 --- a/org.eclipse.jgit.packaging/org.eclipse.jgit.target/jgit-4.6.target +++ b/org.eclipse.jgit.packaging/org.eclipse.jgit.target/jgit-4.6.target @@ -1,7 +1,7 @@ - + @@ -62,6 +62,8 @@ + + diff --git a/org.eclipse.jgit.packaging/org.eclipse.jgit.target/jgit-4.7.target b/org.eclipse.jgit.packaging/org.eclipse.jgit.target/jgit-4.7.target index 9b1c15bcb1..898429fb64 100644 --- a/org.eclipse.jgit.packaging/org.eclipse.jgit.target/jgit-4.7.target +++ b/org.eclipse.jgit.packaging/org.eclipse.jgit.target/jgit-4.7.target @@ -1,7 +1,7 @@ - + @@ -62,6 +62,8 @@ + + diff --git a/org.eclipse.jgit.packaging/org.eclipse.jgit.target/jgit-4.8.target b/org.eclipse.jgit.packaging/org.eclipse.jgit.target/jgit-4.8.target index ddd3c1bb22..8c4925cf5e 100644 --- a/org.eclipse.jgit.packaging/org.eclipse.jgit.target/jgit-4.8.target +++ b/org.eclipse.jgit.packaging/org.eclipse.jgit.target/jgit-4.8.target @@ -1,7 +1,7 @@ - + @@ -62,6 +62,8 @@ + + diff --git a/org.eclipse.jgit.packaging/org.eclipse.jgit.target/orbit/R20170919201930-Oxygen.tpd b/org.eclipse.jgit.packaging/org.eclipse.jgit.target/orbit/R20170919201930-Oxygen.tpd index 4e9cc13f5c..5bd031f6ac 100644 --- a/org.eclipse.jgit.packaging/org.eclipse.jgit.target/orbit/R20170919201930-Oxygen.tpd +++ b/org.eclipse.jgit.packaging/org.eclipse.jgit.target/orbit/R20170919201930-Oxygen.tpd @@ -41,4 +41,6 @@ location "http://download.eclipse.org/tools/orbit/downloads/drops/R2017091920193 org.slf4j.api.source [1.7.2.v20121108-1250,1.7.2.v20121108-1250] org.slf4j.impl.log4j12 [1.7.2.v20131105-2200,1.7.2.v20131105-2200] org.slf4j.impl.log4j12.source [1.7.2.v20131105-2200,1.7.2.v20131105-2200] + com.jcraft.jzlib [1.1.1.v201205102305,1.1.1.v201205102305] + com.jcraft.jzlib.source [1.1.1.v201205102305,1.1.1.v201205102305] } \ No newline at end of file diff --git a/org.eclipse.jgit.packaging/org.eclipse.jgit.target/orbit/S20170912163609-Photon.tpd b/org.eclipse.jgit.packaging/org.eclipse.jgit.target/orbit/S20170912163609-Photon.tpd index 0bdc2dfe68..6fefc4e3dd 100644 --- a/org.eclipse.jgit.packaging/org.eclipse.jgit.target/orbit/S20170912163609-Photon.tpd +++ b/org.eclipse.jgit.packaging/org.eclipse.jgit.target/orbit/S20170912163609-Photon.tpd @@ -41,4 +41,6 @@ location "http://download.eclipse.org/tools/orbit/downloads/drops/S2017091216360 org.slf4j.api.source [1.7.2.v20121108-1250,1.7.2.v20121108-1250] org.slf4j.impl.log4j12 [1.7.2.v20131105-2200,1.7.2.v20131105-2200] org.slf4j.impl.log4j12.source [1.7.2.v20131105-2200,1.7.2.v20131105-2200] + com.jcraft.jzlib [1.1.1.v201205102305,1.1.1.v201205102305] + com.jcraft.jzlib.source [1.1.1.v201205102305,1.1.1.v201205102305] } \ No newline at end of file diff --git a/org.eclipse.jgit/BUILD b/org.eclipse.jgit/BUILD index a8a53f2742..60c4d3793b 100644 --- a/org.eclipse.jgit/BUILD +++ b/org.eclipse.jgit/BUILD @@ -20,6 +20,7 @@ java_library( ":insecure_cipher_factory", "//lib:javaewah", "//lib:jsch", + "//lib:jzlib", "//lib:slf4j-api", ], ) diff --git a/org.eclipse.jgit/pom.xml b/org.eclipse.jgit/pom.xml index 1ea6c34f20..1605fff8e1 100644 --- a/org.eclipse.jgit/pom.xml +++ b/org.eclipse.jgit/pom.xml @@ -74,6 +74,11 @@ jsch + + com.jcraft + jzlib + + com.googlecode.javaewah JavaEWAH diff --git a/pom.xml b/pom.xml index 955099317a..6f4ff370ee 100644 --- a/pom.xml +++ b/pom.xml @@ -193,6 +193,7 @@ 4.9.2.201712150930-r 0.1.54 + 1.1.1 1.1.6 4.12 1C @@ -623,6 +624,12 @@ ${jsch-version} + + com.jcraft + jzlib + ${jzlib-version} + + com.googlecode.javaewah JavaEWAH -- 2.39.5