mirror of
https://github.com/google/guice.git
synced 2024-04-21 12:32:36 +00:00
This required upgrading some test dependencies, because the tests need some impls of the APIs which only exist in newer releases. This also removes the struts2 extension from the maven & bazel build (although it keeps the now-unused source), because struts2 has no release that supports jakarta. For users that want to continue using the struts2 extension, please continue to use the Guice 6.0 release (instead of the 7.0+ line, which will only support the jakarta dependencies). Fixes #1383. (I'll cut the 6.0 candidates/releases from before this commit, and if we need to make further 6.0 changes, I'll manually merge those into the 6.0 branch.) PiperOrigin-RevId: 529504991
36 lines
1.0 KiB
Bash
Executable File
36 lines
1.0 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
while getopts o:n: flag
|
|
do
|
|
case "${flag}" in
|
|
o) OLD_VERSION=${OPTARG};;
|
|
n) NEW_VERSION=${OPTARG};;
|
|
esac
|
|
done
|
|
|
|
BASE_URL=https://repo1.maven.org/maven2/com/google/inject
|
|
REPO_DIR=$PWD
|
|
|
|
# Downloading old versions from maven central
|
|
mkdir -p /tmp/guice-jars
|
|
cd /tmp/guice-jars
|
|
|
|
echo "Old version: $OLD_VERSION, new version: $NEW_VERSION"
|
|
|
|
echo "Downloading core..."
|
|
wget $BASE_URL/guice/$OLD_VERSION/guice-$OLD_VERSION.jar
|
|
|
|
echo "Diffing core..."
|
|
pkgdiff guice-$OLD_VERSION.jar $REPO_DIR/core/target/guice-$NEW_VERSION.jar &
|
|
|
|
# struts2 not listed because we don't build it past the 7.0 line.
|
|
for EXT in assistedinject dagger-adapter grapher jmx jndi persist servlet spring testlib throwingproviders
|
|
do
|
|
echo "Dowloading $EXT extension..."
|
|
wget $BASE_URL/extensions/guice-$EXT/$OLD_VERSION/guice-$EXT-$OLD_VERSION.jar
|
|
echo "Diffing $EXT..."
|
|
pkgdiff guice-$EXT-$OLD_VERSION.jar $REPO_DIR/extensions/$EXT/target/guice-$EXT-$NEW_VERSION.jar &
|
|
done
|
|
|
|
python3 -m http.server --directory pkgdiff_reports/
|