File tree Expand file tree Collapse file tree 2 files changed +40
-11
lines changed
Expand file tree Collapse file tree 2 files changed +40
-11
lines changed Original file line number Diff line number Diff line change 22set -eu
33
44SCRIPT_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
2049echo " complete!"
You can’t perform that action at this time.
0 commit comments