File tree Expand file tree Collapse file tree 6 files changed +47
-45
lines changed
Expand file tree Collapse file tree 6 files changed +47
-45
lines changed Original file line number Diff line number Diff line change 11FROM mcr.microsoft.com/devcontainers/javascript-node:22
22
33# need to run update and install at the same time to prevent stale update layer
4- RUN apt-get update && apt-get install -y gdb clang-format openjdk-17-jdk maven gradle
4+ RUN apt-get update && apt-get install -y gdb clang-format openjdk-17-jdk maven
Original file line number Diff line number Diff line change 1+ target /
2+ dependency-reduced-pom.xml
Original file line number Diff line number Diff line change 1+ <project xmlns =" http://maven.apache.org/POM/4.0.0" >
2+ <modelVersion >4.0.0</modelVersion >
3+ <groupId >commons-lang</groupId >
4+ <artifactId >commons-lang</artifactId >
5+ <version >1</version >
6+
7+ <dependencies >
8+ <dependency >
9+ <groupId >org.apache.commons</groupId >
10+ <artifactId >commons-lang3</artifactId >
11+ <version >3.18.0</version >
12+ </dependency >
13+ </dependencies >
14+
15+ <build >
16+ <plugins >
17+ <plugin >
18+ <groupId >org.apache.maven.plugins</groupId >
19+ <artifactId >maven-shade-plugin</artifactId >
20+ <version >3.6.0</version >
21+ <executions >
22+ <execution >
23+ <phase >package</phase >
24+ <goals >
25+ <goal >shade</goal >
26+ </goals >
27+ <configuration >
28+ <relocations >
29+ <relocation >
30+ <pattern >org.apache</pattern >
31+ <shadedPattern >nodejava.org.apache</shadedPattern >
32+ </relocation >
33+ </relocations >
34+ </configuration >
35+ </execution >
36+ </executions >
37+ </plugin >
38+ </plugins >
39+ </build >
40+ </project >
Original file line number Diff line number Diff line change 11#! /bin/sh
22set -eu
3- SCRIPT_DIR=$( dirname " $0 " )
3+ SCRIPT_DIR=$( dirname $( realpath $0 ) )
44
5- build_common_lang () {
6- echo " build common lang"
7- cd " ${SCRIPT_DIR} /.."
8- if [ -d build/commons-lang ]; then
9- cd build/commons-lang
10- git pull
11- else
12- mkdir -p build
13- cd build
14- git clone https://github.com/apache/commons-lang.git
15- cd commons-lang
16- fi
17- git pull
18- git checkout rel/commons-lang-3.18.0
19- mvn clean compile package -DskipTests
20- }
21-
22- build_jarjar () {
23- echo " build jarjar"
24- cd " ${SCRIPT_DIR} /.."
25- if [ -d build/jarjar ]; then
26- cd build/jarjar
27- git pull
28- else
29- mkdir -p build
30- cd build
31- git clone https://github.com/shevek/jarjar.git
32- cd jarjar
33- fi
34- gradle
35- }
36-
37- repackage_common_lang () {
38- echo " repackaging common lang"
39- cd " ${SCRIPT_DIR} /.."
40- commons_lang_jar=$( ls build/commons-lang/target/commons-lang3* -SNAPSHOT.jar)
41- 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
42- }
43-
44- # build_common_lang
45- build_jarjar
46- repackage_common_lang
5+ cd " ${SCRIPT_DIR} /commons-lang"
6+ mvn package
7+ cp " ${SCRIPT_DIR} /commons-lang/target/commons-lang-1.jar" " ${SCRIPT_DIR} /../src-java/commons-lang3-node-java.jar"
478
489echo " complete!"
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments