Files
gerrit/lib/nongoogle_test.sh
David Ostrovsky 78be3dff19 Bump guice version to 5.0 beta-1
Guice 5.0 added some new features: [1]. Most important for us are:

o Added Java 15 support (updated asm and bug fixes).
o Removed cglib as a core dependency.
o Removed no-aop build variant.

Given that the no-aop variant is removed, the previous change that
switched to this distribution flavor is reverted: I4a052850d14.

Here is the relevant section from the release notes about no-AOP
guice version:

Using Guice no-AOP version

If you were using Guice no-aop version, simply switch to the standard
version of Guice. Older Guice with no-aop does not use runtime bytecode
generation and starting with this release runtime bytecode generation
is enabled by default and can be disabled by setting
-Dguice_bytecode_gen_option=DISABLED.

[1] https://github.com/google/guice/releases/tag/5.0.0-BETA-1

Change-Id: Ia0ea96e67a25e7c27f71f3bc0070cacdb28b5ad8
2021-02-04 20:51:50 +01:00

54 lines
804 B
Bash
Executable File

#!/bin/sh
# This test ensures that new dependencies in nongoogle.bzl go through LC review.
set -eux
bzl=$(pwd)/tools/nongoogle.bzl
TMP=$(mktemp -d || mktemp -d -t /tmp/tmp.XXXXXX)
grep 'name = "[^"]*"' ${bzl} | sed 's|^[^"]*"||g;s|".*$||g' | sort > $TMP/names
cat << EOF > $TMP/want
cglib-3_2
commons-io
docker-java-api
docker-java-transport
dropwizard-core
duct-tape
eddsa
flogger
flogger-log4j-backend
flogger-system-backend
guava
guice-assistedinject
guice-library
guice-servlet
httpasyncclient
httpcore-nio
j2objc
jackson-annotations
jackson-core
jimfs
jna
jruby
mina-core
nekohtml
objenesis
openid-consumer
soy
sshd-mina
sshd-osgi
testcontainers
truth
truth-java8-extension
truth-liteproto-extension
truth-proto-extension
tukaani-xz
visible-assertions
xerces
EOF
diff -u $TMP/names $TMP/want