Skip to content

Commit eace886

Browse files
committed
wip
1 parent f02b0f2 commit eace886

File tree

2 files changed

+40
-11
lines changed

2 files changed

+40
-11
lines changed

scripts/update-commons-lang.sh

Lines changed: 40 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,48 @@
22
set -eu
33

44
SCRIPT_DIR=$(dirname "$0")
5-
cd "${SCRIPT_DIR}/.."
65

7-
if [ -d build/commons-lang ]; then
8-
cd build/commons-lang
6+
build_common_lang () {
7+
echo "build common lang"
8+
cd "${SCRIPT_DIR}/.."
9+
if [ -d build/commons-lang ]; then
10+
cd build/commons-lang
11+
git pull
12+
else
13+
mkdir -p build
14+
cd build
15+
git clone git@github.com:apache/commons-lang.git
16+
cd commons-lang
17+
fi
918
git pull
10-
else
11-
mkdir -p build
12-
cd build
13-
git clone --depth 1 git@github.com:apache/commons-lang.git
14-
cd commons-lang
15-
fi
19+
git checkout rel/commons-lang-3.18.0
20+
mvn clean compile package -DskipTests
21+
}
1622

17-
mvn clean compile package -DskipTests
18-
java -jar ../../src-java/jarjar-1.4.jar process ../../src-java/commons-lang.jarjar.rules target/commons-lang3*-SNAPSHOT.jar ../../src-java/commons-lang3-node-java.jar
23+
build_jarjar () {
24+
echo "build jarjar"
25+
cd "${SCRIPT_DIR}/.."
26+
if [ -d build/jarjar-forkfork ]; then
27+
cd build/jarjar-forkfork/jarjar
28+
git pull
29+
else
30+
mkdir -p build
31+
cd build
32+
git clone git@github.com:mike-hogan/jarjar-forkfork.git
33+
cd jarjar-forkfork/jarjar
34+
fi
35+
mvn clean compile package -DskipTests
36+
}
37+
38+
repackage_common_lang () {
39+
echo "repackaging common lang"
40+
cd "${SCRIPT_DIR}/.."
41+
commons_lang_jar=$(ls build/commons-lang/target/commons-lang3*-SNAPSHOT.jar)
42+
java -jar build/jarjar-forkfork/jarjar/target/jarjar-1.3.jar process src-java/commons-lang.jarjar.rules "${commons_lang_jar}" src-java/commons-lang3-node-java.jar
43+
}
44+
45+
# build_common_lang
46+
build_jarjar
47+
repackage_common_lang
1948

2049
echo "complete!"

src-java/jarjar-1.4.jar

-118 KB
Binary file not shown.

0 commit comments

Comments
 (0)