Add dependency on the Google protocol buffer library

This allows us to use gwtorm's protobuf serialization support. Prior
to this, loading classes like ProtobufCodec would fail because we were
missing this transitive dependency.

Change-Id: I715317135fc3dab76bfe3ad78751e10f31309ebf
This commit is contained in:
Dave Borowitz 2013-09-10 15:06:05 -07:00
parent 6ce01392c3
commit 2474f211d4
2 changed files with 44 additions and 0 deletions

View File

@ -19,6 +19,7 @@ define_license(name = 'jsr305')
define_license(name = 'ow2')
define_license(name = 'postgresql')
define_license(name = 'prologcafe')
define_license(name = 'protobuf')
define_license(name = 'slf4j')
define_license(name = 'DO_NOT_DISTRIBUTE')
@ -28,6 +29,7 @@ maven_jar(
bin_sha1 = 'ee3b316a023f1422dd4b6654a3d51d0e5690809c',
src_sha1 = 'a145bde4cc87a4ff4cec283880e2a03be32cc868',
license = 'Apache2.0',
deps = [':protobuf'],
repository = GERRIT,
)
@ -204,6 +206,15 @@ maven_jar(
attach_source = False,
)
maven_jar(
name = 'protobuf',
# Must match version in gwtorm/pom.xml.
id = 'com.google.protobuf:protobuf-java:2.4.1',
bin_sha1 = '0c589509ec6fd86d5d2fda37e07c08538235d3b9',
src_sha1 = 'e406f69360f2a89cb4aa724ed996a1c5599af383',
license = 'protobuf',
)
maven_jar(
name = 'junit',
id = 'junit:junit:4.11',

33
lib/LICENSE-protobuf Normal file
View File

@ -0,0 +1,33 @@
Copyright 2008, Google Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the
distribution.
* Neither the name of Google Inc. nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Code generated by the Protocol Buffer compiler is owned by the owner
of the input file used when generating it. This code is not
standalone and requires a support library to be linked with it. This
support library is itself covered by the above license.