From 1cbfe97c918bae8c69bf2941c4ebd9dc9fcd781f Mon Sep 17 00:00:00 2001 From: Doug Kelly Date: Mon, 9 Nov 2015 10:38:11 -0800 Subject: [PATCH] Changing the SSH key converter to BUCK Since we're a BUCK shop, convert the SSH key converter accordingly. This requires we mark Bouncy Castle as unsign, even though we do not include this in our normal Gerrit builds. Also, we had to add slf4j-nop, since this app doesn't require logging. Change-Id: I85031192f9172a90512d5f28cf1621c10ad6ebf4 --- contrib/convertkey/BUCK | 20 +++++++++ contrib/convertkey/pom.xml | 89 -------------------------------------- lib/bouncycastle/BUCK | 2 + lib/log/BUCK | 8 ++++ 4 files changed, 30 insertions(+), 89 deletions(-) create mode 100644 contrib/convertkey/BUCK delete mode 100644 contrib/convertkey/pom.xml diff --git a/contrib/convertkey/BUCK b/contrib/convertkey/BUCK new file mode 100644 index 0000000000..752f82adf0 --- /dev/null +++ b/contrib/convertkey/BUCK @@ -0,0 +1,20 @@ +include_defs('//lib/maven.defs') + +java_library( + name = 'convertkey__lib', + srcs = glob(['src/main/java/**/*.java']), + deps = [ + '//lib:jsch', + '//lib/bouncycastle:bcprov', + '//lib/bouncycastle:bcpkix', + '//lib/log:nop', + '//lib/mina:sshd', + ], +) + +java_binary( + name = 'convertkey', + deps = [':convertkey__lib'], + main_class = 'com.googlesource.gerrit.convertkey.ConvertKey', +) + diff --git a/contrib/convertkey/pom.xml b/contrib/convertkey/pom.xml deleted file mode 100644 index bc71b9ee2b..0000000000 --- a/contrib/convertkey/pom.xml +++ /dev/null @@ -1,89 +0,0 @@ - - 4.0.0 - - com.googlesource.gerrit - convertkey - 0.0.1-SNAPSHOT - jar - - convertkey - http://maven.apache.org - - - - - org.apache.maven.plugins - maven-dependency-plugin - 2.8 - - - copy-dependencies - prepare-package - - copy-dependencies - - - ${project.build.directory}/lib - false - false - true - - - - - - org.apache.maven.plugins - maven-jar-plugin - 2.4 - - - - true - lib/ - com.googlesource.gerrit.convertkey.ConvertKey - - - - - - - - - UTF-8 - - - - - junit - junit - 3.8.1 - test - - - org.apache.sshd - sshd-core - 0.14.0 - - - org.bouncycastle - bcprov-jdk15on - 1.52 - - - org.bouncycastle - bcpkix-jdk15on - 1.52 - - - com.jcraft - jsch - 0.1.53 - - - org.slf4j - slf4j-nop - 1.7.12 - - - diff --git a/lib/bouncycastle/BUCK b/lib/bouncycastle/BUCK index 0ce5817425..21e6120803 100644 --- a/lib/bouncycastle/BUCK +++ b/lib/bouncycastle/BUCK @@ -8,6 +8,7 @@ maven_jar( name = 'bcprov', id = 'org.bouncycastle:bcprov-jdk15on:' + VERSION, sha1 = '88a941faf9819d371e3174b5ed56a3f3f7d73269', + unsign = True, license = 'DO_NOT_DISTRIBUTE', #'bouncycastle' ) @@ -23,6 +24,7 @@ maven_jar( name = 'bcpkix', id = 'org.bouncycastle:bcpkix-jdk15on:' + VERSION, sha1 = 'b8ffac2bbc6626f86909589c8cc63637cc936504', + unsign = True, license = 'DO_NOT_DISTRIBUTE', #'bouncycastle' deps = [':bcprov'], ) diff --git a/lib/log/BUCK b/lib/log/BUCK index b332f20e62..a5201f3505 100644 --- a/lib/log/BUCK +++ b/lib/log/BUCK @@ -9,6 +9,14 @@ maven_jar( license = 'slf4j', ) +maven_jar( + name = 'nop', + id = 'org.slf4j:slf4j-nop:' + VER, + sha1 = '6cca9a3b999ff28b7a35ca762b3197cd7e4c2ad1', + license = 'slf4j', + deps = [':api'], +) + maven_jar( name = 'impl_log4j', id = 'org.slf4j:slf4j-log4j12:' + VER,