Import code from internal repository to git

This commit is contained in:
Justine Tunney 2016-03-01 17:18:14 -05:00
commit 0ef0c933d2
2490 changed files with 281594 additions and 0 deletions

11
third_party/java/apache_mina/BUILD vendored Normal file
View file

@ -0,0 +1,11 @@
package(default_visibility = ["//visibility:public"])
licenses(["notice"]) # Apache License 2.0
java_library(
name = "core",
exports = [
"@mina_core//jar",
"//third_party/java/slf4j_api",
],
)

11
third_party/java/apache_sshd/BUILD vendored Normal file
View file

@ -0,0 +1,11 @@
package(default_visibility = ["//visibility:public"])
licenses(["notice"]) # Apache License 2.0
java_library(
name = "apache_sshd",
exports = [
"@sshd_core//jar",
"//third_party/java/apache_mina:core",
],
)

77
third_party/java/appengine/BUILD vendored Normal file
View file

@ -0,0 +1,77 @@
package(default_visibility = ["//visibility:public"])
licenses(["notice"]) # Apache 2.0, BSD, MIT
java_library(
name = "appengine-api",
neverlink = 1,
exports = ["@appengine_api_sdk//jar"],
)
java_library(
name = "appengine-api-link",
exports = ["@appengine_api_sdk//jar"],
)
java_library(
name = "appengine-api-testonly",
testonly = 1,
exports = ["@appengine_api_sdk//jar"],
)
java_library(
name = "appengine-remote-api",
neverlink = 1,
exports = ["@appengine_remote_api//jar"],
)
java_library(
name = "appengine-remote-api-link",
exports = ["@appengine_remote_api//jar"],
)
java_library(
name = "appengine-remote-api-testonly",
testonly = 1,
exports = ["@appengine_remote_api//jar"],
)
java_library(
name = "appengine-api-labs",
neverlink = 1,
exports = ["@appengine_api_labs//jar"],
)
java_library(
name = "appengine-api-labs-link",
exports = ["@appengine_api_labs//jar"],
)
java_library(
name = "appengine-api-labs-testonly",
testonly = 1,
exports = ["@appengine_api_labs//jar"],
)
java_library(
name = "appengine-stubs",
testonly = 1,
exports = ["@appengine_api_stubs//jar"],
)
java_library(
name = "appengine-testing",
testonly = 1,
exports = [
"@appengine_testing//jar",
":appengine-api-labs-testonly",
":appengine-api-testonly",
":appengine-stubs",
],
)
java_library(
name = "appengine-integration-testing",
testonly = 1,
exports = ["@appengine_tools_sdk//jar"],
)

View file

@ -0,0 +1,14 @@
package(default_visibility = ["//visibility:public"])
licenses(["notice"]) # Apache License 2.0
java_library(
name = "appengine_gcs_client",
exports = [
"@appengine_gcs_client//jar",
"@google_api_client_appengine//jar",
"@google_api_services_storage//jar",
"@google_http_client_appengine//jar",
"@google_http_client_jackson2//jar",
],
)

View file

@ -0,0 +1,26 @@
package(default_visibility = ["//visibility:public"])
licenses(["notice"]) # Apache License 2.0
java_library(
name = "appengine_mapreduce",
exports = [
"@appengine_mapreduce//jar",
"@bazel_tools//third_party:guava",
"@bazel_tools//third_party:joda_time",
"@fastutil//jar",
"@google_api_client//jar",
"@google_api_client_appengine//jar",
"@google_api_services_bigquery//jar",
"@google_http_client_appengine//jar",
"@google_http_client_jackson2//jar",
"@jackson_core//jar",
"@jackson_databind//jar",
"@protobuf_java//jar",
"//third_party/java/appengine:appengine-api",
"//third_party/java/appengine_gcs_client",
"//third_party/java/appengine_pipeline",
"//third_party/java/charts4j",
"//third_party/java/servlet/servlet_api",
],
)

View file

@ -0,0 +1,15 @@
package(default_visibility = ["//visibility:public"])
licenses(["notice"]) # Apache License 2.0
java_library(
name = "appengine_pipeline",
exports = [
"@appengine_pipeline//jar",
"@bazel_tools//third_party:guava",
"@json//jar",
"//third_party/java/appengine:appengine-api",
"//third_party/java/appengine_gcs_client",
"//third_party/java/servlet/servlet_api",
],
)

61
third_party/java/auto/BUILD vendored Normal file
View file

@ -0,0 +1,61 @@
package(default_visibility = ["//visibility:public"])
licenses(["notice"]) # Apache License 2.0
java_library(
name = "auto_common",
exports = ["@auto_common//jar"],
)
java_library(
name = "auto_factory",
exported_plugins = [":auto_factory_plugin"],
exports = ["@auto_factory//jar"],
)
java_library(
name = "auto_service",
exported_plugins = [":auto_service_plugin"],
exports = ["@auto_service//jar"],
)
java_library(
name = "auto_value",
exported_plugins = [":auto_value_plugin"],
exports = ["@auto_value//jar"],
)
java_plugin(
name = "auto_factory_plugin",
processor_class = "com.google.auto.factory.processor.AutoFactoryProcessor",
visibility = ["//visibility:private"],
deps = [
"@auto_factory//jar",
"@bazel_tools//third_party:guava",
"@javawriter//jar",
":auto_common",
],
)
java_plugin(
name = "auto_service_plugin",
processor_class = "com.google.auto.service.processor.AutoServiceProcessor",
visibility = ["//visibility:private"],
deps = [
"@auto_service//jar",
"@bazel_tools//third_party:guava",
":auto_common",
],
)
java_plugin(
name = "auto_value_plugin",
processor_class = "com.google.auto.value.processor.AutoValueProcessor",
visibility = ["//visibility:private"],
deps = [
"@auto_value//jar",
"@bazel_tools//third_party:guava",
"@bazel_tools//third_party:jsr305",
":auto_common",
],
)

11
third_party/java/bouncycastle/BUILD vendored Normal file
View file

@ -0,0 +1,11 @@
package(default_visibility = ["//visibility:public"])
licenses(["notice"]) # MIT, portions under other notice licenses
java_library(
name = "bouncycastle",
exports = [
"@bcprov_jdk15on//jar",
"//third_party/java/bouncycastle_bcpkix",
],
)

View file

@ -0,0 +1,8 @@
package(default_visibility = ["//visibility:public"])
licenses(["notice"]) # MIT
java_library(
name = "bouncycastle_bcpg",
exports = ["@bcpg_jdk15on//jar"],
)

View file

@ -0,0 +1,8 @@
package(default_visibility = ["//visibility:public"])
licenses(["notice"]) # MIT, portions under other notice licenses
java_library(
name = "bouncycastle_bcpkix",
exports = ["@bcpkix_jdk15on//jar"],
)

8
third_party/java/braintree/BUILD vendored Normal file
View file

@ -0,0 +1,8 @@
package(default_visibility = ["//visibility:public"])
licenses(["notice"]) # MIT
java_library(
name = "braintree",
exports = ["@braintree_java//jar"],
)

8
third_party/java/charts4j/BUILD vendored Normal file
View file

@ -0,0 +1,8 @@
package(default_visibility = ["//visibility:public"])
licenses(["notice"]) # MIT
java_library(
name = "charts4j",
exports = ["@charts4j//jar"],
)

49
third_party/java/dagger/BUILD vendored Normal file
View file

@ -0,0 +1,49 @@
licenses(["notice"]) # Apache License 2.0
java_library(
name = "dagger",
exported_plugins = [":component-codegen"],
visibility = ["//visibility:public"],
exports = [":dagger-runtime"],
)
java_library(
name = "dagger-runtime",
exports = [
"@bazel_tools//third_party:jsr330_inject",
"@dagger//jar",
],
)
java_library(
name = "dagger-producers",
exports = [
"@bazel_tools//third_party:guava",
"@bazel_tools//third_party:jsr330_inject",
"@dagger_producers//jar",
],
)
java_library(
name = "dagger-compiler",
exports = [
"@bazel_tools//third_party:auto_common",
"@bazel_tools//third_party:auto_service",
"@bazel_tools//third_party:auto_value",
"@bazel_tools//third_party:gson",
"@bazel_tools//third_party:guava",
"@bazel_tools//third_party:jsr305",
"@bazel_tools//third_party:jsr330_inject",
"@dagger_compiler//jar",
":dagger-producers",
":dagger-runtime",
"//third_party/java/google_java_format:lib",
"//third_party/java/javapoet",
],
)
java_plugin(
name = "component-codegen",
processor_class = "dagger.internal.codegen.ComponentProcessor",
deps = [":dagger-compiler"],
)

8
third_party/java/ftpserver/BUILD vendored Normal file
View file

@ -0,0 +1,8 @@
package(default_visibility = ["//visibility:public"])
licenses(["notice"]) # Apache License 2.0
java_library(
name = "ftpserver",
exports = ["@ftpserver_core//jar"],
)

View file

@ -0,0 +1,12 @@
package(default_visibility = ["//visibility:public"])
licenses(["notice"]) # Apache 2.0, portions NCSA
java_library(
name = "lib",
exports = [
"@bazel_tools//third_party:guava",
"@eclipse_jdt_core//jar",
"@google_java_format//jar",
],
)

11
third_party/java/hamcrest/BUILD vendored Normal file
View file

@ -0,0 +1,11 @@
package(default_visibility = ["//visibility:public"])
licenses(["notice"]) # BSD
java_library(
name = "hamcrest",
exports = [
"@hamcrest_core//jar",
"@hamcrest_library//jar",
],
)

8
third_party/java/icu4j/BUILD vendored Normal file
View file

@ -0,0 +1,8 @@
package(default_visibility = ["//visibility:public"])
licenses(["notice"]) # ICU License (old X License)
java_library(
name = "icu4j",
exports = ["@icu4j//jar"],
)

8
third_party/java/javapoet/BUILD vendored Normal file
View file

@ -0,0 +1,8 @@
package(default_visibility = ["//visibility:public"])
licenses(["notice"]) # Apache License 2.0
java_library(
name = "javapoet",
exports = ["@javapoet//jar"],
)

19
third_party/java/jaxb/BUILD vendored Normal file
View file

@ -0,0 +1,19 @@
package(default_visibility = ["//visibility:public"])
licenses(["reciprocal"]) # CDDL 1.1 (also dual-licensed under GPL v2)
java_library(
name = "jaxb",
exports = ["@jaxb_api//jar"],
)
java_binary(
name = "jaxb-xjc",
main_class = "com.sun.tools.xjc.XJCFacade",
runtime_deps = [
"@jaxb_api//jar",
"@jaxb_core//jar",
"@jaxb_impl//jar",
"@jaxb_xjc//jar",
],
)

8
third_party/java/jcommander/BUILD vendored Normal file
View file

@ -0,0 +1,8 @@
package(default_visibility = ["//visibility:public"])
licenses(["notice"]) # Apache License 2.0
java_library(
name = "jcommander",
exports = ["@jcommander//jar"],
)

13
third_party/java/jetty/v6_1_22/BUILD vendored Normal file
View file

@ -0,0 +1,13 @@
package(default_visibility = ["//visibility:public"])
licenses(["notice"]) # Apache 2.0
java_library(
name = "v6_1_22",
testonly = 1,
exports = [
"@jetty//jar",
"@jetty_util//jar",
"@servlet_api//jar",
],
)

8
third_party/java/joda_money/BUILD vendored Normal file
View file

@ -0,0 +1,8 @@
package(default_visibility = ["//visibility:public"])
licenses(["notice"]) # Apache License 2.0
java_library(
name = "joda_money",
exports = ["@joda_money//jar"],
)

8
third_party/java/joda_time/BUILD vendored Normal file
View file

@ -0,0 +1,8 @@
package(default_visibility = ["//visibility:public"])
licenses(["notice"]) # Apache License 2.0
java_library(
name = "joda_time",
exports = ["@bazel_tools//third_party:joda_time"],
)

8
third_party/java/jsch/BUILD vendored Normal file
View file

@ -0,0 +1,8 @@
package(default_visibility = ["//visibility:public"])
licenses(["notice"]) # BSD
java_library(
name = "jsch",
exports = ["//third_party/java/jsch/v0_1_44_google"],
)

View file

@ -0,0 +1,15 @@
package_group(
name = "specific_version",
packages = ["//third_party/java/jsch"],
)
package(default_visibility = [":specific_version"])
licenses(["notice"]) # BSD
java_import(
name = "v0_1_44_google",
jars = ["jsch-0.1.44_google.jar"],
srcjar = "jsch-0.1.44_google-src.jar",
deps = ["//third_party/java/jzlib"],
)

View file

@ -0,0 +1,30 @@
JSch 0.0.* was released under the GNU LGPL license. Later, we have switched
over to a BSD-style license.
------------------------------------------------------------------------------
Copyright (c) 2002-2010 Atsuhiko Yamanaka, JCraft,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:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2. 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.
3. The names of the authors may not be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 JCRAFT,
INC. OR ANY CONTRIBUTORS TO THIS SOFTWARE 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.

View file

@ -0,0 +1,63 @@
Project URL: http://www.jcraft.com/jsch
URL: http://downloads.sourceforge.net/project/jsch/jsch/0.1.44/jsch-0.1.44.zip?use_mirror=cdnetworks-us-1
Version: 0.1.44
License: BSD
License File: LICENSE
Description:
JSCH is a library for making SSH and SFTP connections from Java.
Local Modifications:
Added three new features and one backport. Default behavior is preserved if
they aren't used.
* Define global ThreadFactory instance. This allows the library to be used on
App Engine, which doesn't allow apps to call `new Thread()`. To do this, you
must override `JSch.threadFactory` with something from GAE's ThreadManager.
Another global is also provided to disable calls to `Thread#setName` which
always crash on GAE, regardless of ThreadFactory.
Files edited:
* JSch.java - Defined new `threadFactory` and `useThreadNames` fields.
* Util.java - Updated thread creation code.
* ChannelDirectTCPIP.java - Updated thread creation code.
* ChannelSubsystem.java - Updated thread creation code.
* ChannelShell.java - Updated thread creation code.
* Session.java - Updated thread creation code.
* ChannelForwardedTCPIP.java - Updated thread creation code.
* ChannelExec.java - Updated thread creation code.
* Multiple pending requests with SFTP. Disabled by default. Call
SftpChannel.setMaxPendingRequests(n) with n > 1 to enable (64 is a reasonable
value). Can provide speed improvements of 10-20x if Periscope is disabled,
and approximately 7x if Periscope is enabled and write flushing is disabled.
Files edited:
* ChannelSftp.java - Added alternate methods (fastGet, fastRead) that use
new algorithm. If feature is enabled, the local window
size will be set to Integer.MAX_VALUE, since flow
control is already handled by SFTP, and some servers
don't work well with smaller windows.
* Disable flushing of writes. Flushing is enabled by default. Call
Session.setFlushingEnabled(false) before connecting to disable. Due to
Periscope latency, flushing must be disabled to take advantage of multiple
pending requests.
Files edited:
* Session.java - Added simple getter/setter for flushingEnabled boolean.
* IO.java - Added optional flushingEnabled constructor arg. Disabled
flushing when flushingEnabled is false.
* Added support for diffie-hellman-group14-sha1 key exchange algorithm to
maintain connections to servers using upgraded OpenSSL.
Files edited:
* JSch.java - Added diffie-hellman-group14-sha1 to kex config.
* DHG14.java - Added, patched from version 0.1.46.
* jce/DH.java - Modified to support DH groups >1024 bits by ignoring
JDK<8 exception and testing length of keys.

Binary file not shown.

Binary file not shown.

8
third_party/java/json/BUILD vendored Normal file
View file

@ -0,0 +1,8 @@
package(default_visibility = ["//visibility:public"])
licenses(["notice"]) # MIT-style license
java_library(
name = "json",
exports = ["@json//jar"],
)

8
third_party/java/json_simple/BUILD vendored Normal file
View file

@ -0,0 +1,8 @@
package(default_visibility = ["//visibility:public"])
licenses(["notice"]) # Apache License 2.0
java_library(
name = "json_simple",
exports = ["@json_simple//jar"],
)

View file

@ -0,0 +1,8 @@
package(default_visibility = ["//visibility:public"])
licenses(["notice"]) # BSD License
java_library(
name = "jsr305_annotations",
exports = ["@bazel_tools//third_party:jsr305"],
)

8
third_party/java/jsr330_inject/BUILD vendored Normal file
View file

@ -0,0 +1,8 @@
package(default_visibility = ["//visibility:public"])
licenses(["notice"]) # Apache 2.0
java_library(
name = "jsr330_inject",
exports = ["@bazel_tools//third_party:jsr330_inject"],
)

9
third_party/java/junit/BUILD vendored Normal file
View file

@ -0,0 +1,9 @@
package(default_visibility = ["//visibility:public"])
licenses(["reciprocal"]) # Common Public License 1.0
java_library(
name = "junit",
testonly = 1,
exports = ["@bazel_tools//third_party:junit4"],
)

8
third_party/java/jzlib/BUILD vendored Normal file
View file

@ -0,0 +1,8 @@
package(default_visibility = ["//visibility:public"])
licenses(["notice"]) # BSD
java_library(
name = "jzlib",
exports = ["@jzlib//jar"],
)

9
third_party/java/mockito/BUILD vendored Normal file
View file

@ -0,0 +1,9 @@
package(default_visibility = ["//visibility:public"])
licenses(["notice"]) # MIT
java_library(
name = "mockito",
testonly = 1,
exports = ["@bazel_tools//third_party:mockito"],
)

8
third_party/java/objectify/BUILD vendored Normal file
View file

@ -0,0 +1,8 @@
package(default_visibility = ["//visibility:public"])
licenses(["notice"]) # MIT/X11
java_library(
name = "objectify-v4_1",
exports = ["//third_party/java/objectify/v4_1"],
)

18
third_party/java/objectify/v4_1/BUILD vendored Normal file
View file

@ -0,0 +1,18 @@
package_group(
name = "specific_version",
packages = ["//third_party/java/objectify"],
)
package(default_visibility = [":specific_version"])
licenses(["notice"]) # MIT/X11
java_import(
name = "v4_1",
jars = ["objectify-4.1.3.jar"],
srcjar = "objectify-4.1.3-src.jar",
deps = [
"//third_party/java/appengine:appengine-api",
"//third_party/java/servlet/servlet_api",
],
)

22
third_party/java/objectify/v4_1/LICENSE vendored Normal file
View file

@ -0,0 +1,22 @@
The MIT License (MIT)
Copyright (c) 2009-2013
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

View file

@ -0,0 +1,39 @@
URL: https://github.com/objectify/objectify/archive/d6df0e3f291440c620c72be6650bf7fdafc8c1b2.zip
Version: d6df0e3f291440c620c72be6650bf7fdafc8c1b2 (4.1.3 with two google patches)
URL: http://central.maven.org/maven2/com/googlecode/objectify/objectify-gwt/1.0/objectify-gwt-1.0-sources.jar
Version: 1.0
License: MIT
License File: LICENSE
Description:
Objectify-Appengine is a thin Java wrapper around Google App Engine's
low-level datastore API that allows you to persist type-safe POJO objects.
It provides a human-friendly query interface, generified key, query, and
prepared query classes, GWT-able entity objects, and transactions in one
lightweight jar file with no dependencies.
NOTE: this library includes custom serializers for AppEngine classes in
com.google.appengine.api.* packages. This is necessary because serializers
are discovered by AppEngine using a naming pattern that requires that the
data and serializer classes be in the same package (similar to how the Java
Beans introspector finds BeanInfo classes).
In Objectify versions 4.1 and later, the GWT emulation classes were broken
out into a separate versioned jar. Since we are jarjar repackaging the
core Objectify library to include a version number in the package, we need
to include the GWT files in this folder and apply the same changes to them.
Maintainer Notes:
git clone https://github.com/objectify/objectify.git
git checkout -b v4 remotes/origin/v4
mvn package
# wait like literally an hour
cp target/objectify-4.1.3.jar $g3/third_party/java/objectify/v4_1
cp target/objectify-4.1.3-sources.jar $g3/third_party/java/objectify/v4_1/target/objectify-4.1.3-src.jar
MIT License file downloaded from license links at
https://code.google.com/p/objectify-appengine/
https://code.google.com/p/objectify-gwt/

Binary file not shown.

Binary file not shown.

8
third_party/java/qdox/BUILD vendored Normal file
View file

@ -0,0 +1,8 @@
package(default_visibility = ["//visibility:public"])
licenses(["notice"]) # Apache License 2.0
java_library(
name = "qdox",
exports = ["@qdox//jar"],
)

View file

@ -0,0 +1,8 @@
package(default_visibility = ["//visibility:public"])
licenses(["notice"]) # Apache
java_library(
name = "servlet_api",
exports = ["@servlet_api//jar"],
)

8
third_party/java/slf4j_api/BUILD vendored Normal file
View file

@ -0,0 +1,8 @@
package(default_visibility = ["//visibility:public"])
licenses(["notice"])
java_library(
name = "slf4j_api",
exports = ["@slf4j_api//jar"],
)

32
third_party/java/soy/BUILD vendored Normal file
View file

@ -0,0 +1,32 @@
package(default_visibility = ["//visibility:public"])
licenses(["notice"]) # Apache License 2.0
java_library(
name = "soy",
exports = [
"@aopalliance//jar",
"@asm//jar",
"@asm_analysis//jar",
"@asm_commons//jar",
"@asm_util//jar",
"@bazel_tools//third_party:guava",
"@bazel_tools//third_party:jsr305",
"@bazel_tools//third_party:jsr330_inject",
"@guice//jar",
"@guice_assistedinject//jar",
"@guice_multibindings//jar",
"@icu4j//jar",
"@soy//jar",
],
)
java_binary(
name = "SoyParseInfoGenerator",
jvm_flags = ["-client"],
main_class = "com.google.template.soy.SoyParseInfoGenerator",
runtime_deps = [
"@args4j//jar",
":soy",
],
)

9
third_party/java/truth/BUILD vendored Normal file
View file

@ -0,0 +1,9 @@
package(default_visibility = ["//visibility:public"])
licenses(["notice"]) # Apache License 2.0
java_library(
name = "truth",
testonly = 1,
exports = ["@bazel_tools//third_party:truth"],
)