File tree Expand file tree Collapse file tree 4 files changed +79
-10
lines changed Expand file tree Collapse file tree 4 files changed +79
-10
lines changed Original file line number Diff line number Diff line change 1
- FROM maven:3-jdk-11-slim AS package
1
+ FROM maven:3-eclipse-temurin-21-alpine AS package
2
2
3
3
COPY java/common /vulnfunc/java/common
4
- RUN mvn -f /vulnfunc/java/common --batch-mode --update-snapshots package
4
+ RUN mvn -f /vulnfunc/java/common --batch-mode --update-snapshots package -DskipTests
5
5
6
- FROM openjdk:11-jre -slim
6
+ FROM openjdk:21 -slim
7
7
RUN apt-get update ; apt-get install --no-install-recommends -y zip
8
8
COPY --from=package /vulnfunc/java/common/target/SootWrapper.jar /vulnfunc/java/common/
9
9
COPY java/common/*.sh /vulnfunc/java/common/
Original file line number Diff line number Diff line change 85
85
</plugins >
86
86
</build >
87
87
88
+ <profiles >
89
+ <!-- Profile for Java 11 -->
90
+ <profile >
91
+ <id >java11</id >
92
+ <activation >
93
+ <activeByDefault >false</activeByDefault >
94
+ </activation >
95
+ <properties >
96
+ <maven .compiler.source>11</maven .compiler.source>
97
+ <maven .compiler.target>11</maven .compiler.target>
98
+ <finalName >SootWrapper-java11</finalName >
99
+ </properties >
100
+ <build >
101
+ <plugins >
102
+ <plugin >
103
+ <groupId >org.apache.maven.plugins</groupId >
104
+ <artifactId >maven-compiler-plugin</artifactId >
105
+ <version >3.11.0</version >
106
+ </plugin >
107
+ </plugins >
108
+ </build >
109
+ </profile >
110
+
111
+ <!-- Profile for Java 17 -->
112
+ <profile >
113
+ <id >java17</id >
114
+ <activation >
115
+ <activeByDefault >false</activeByDefault >
116
+ </activation >
117
+ <properties >
118
+ <maven .compiler.source>17</maven .compiler.source>
119
+ <maven .compiler.target>17</maven .compiler.target>
120
+ <finalName >SootWrapper-java17</finalName >
121
+ </properties >
122
+ <build >
123
+ <plugins >
124
+ <plugin >
125
+ <groupId >org.apache.maven.plugins</groupId >
126
+ <artifactId >maven-compiler-plugin</artifactId >
127
+ <version >3.11.0</version >
128
+ </plugin >
129
+ </plugins >
130
+ </build >
131
+ </profile >
132
+
133
+ <!-- Profile for Java 21 -->
134
+ <profile >
135
+ <id >java21</id >
136
+ <activation >
137
+ <activeByDefault >false</activeByDefault >
138
+ </activation >
139
+ <properties >
140
+ <maven .compiler.source>21</maven .compiler.source>
141
+ <maven .compiler.target>21</maven .compiler.target>
142
+ <finalName >SootWrapper-java21</finalName >
143
+ </properties >
144
+ <build >
145
+ <plugins >
146
+ <plugin >
147
+ <groupId >org.apache.maven.plugins</groupId >
148
+ <artifactId >maven-compiler-plugin</artifactId >
149
+ <version >3.11.0</version >
150
+ </plugin >
151
+ </plugins >
152
+ </build >
153
+ </profile >
154
+ </profiles >
155
+
156
+
88
157
</project >
Original file line number Diff line number Diff line change 1
- FROM maven:3-jdk-11-slim AS package
1
+ FROM maven:3-eclipse-temurin-21-alpine AS package
2
2
3
3
COPY java/common /vulnfunc/java/common
4
- RUN mvn -f /vulnfunc/java/common --batch-mode --update-snapshots package
4
+ RUN mvn -f /vulnfunc/java/common --batch-mode --update-snapshots package -DskipTests
5
5
6
- FROM gradle:jre11
6
+ FROM gradle:jdk21
7
7
RUN apt-get update ; apt-get install --no-install-recommends -y zip
8
8
COPY --from=package /vulnfunc/java/common/target/SootWrapper.jar /vulnfunc/java/common/
9
9
COPY java/common/*.sh /vulnfunc/java/common/
Original file line number Diff line number Diff line change 1
- FROM maven:3-jdk-11-slim AS package
1
+ FROM maven:3-eclipse-temurin-21-alpine AS package
2
2
3
3
COPY java/common /vulnfunc/java/common
4
- RUN mvn -f /vulnfunc/java/common --batch-mode --update-snapshots package
4
+ RUN mvn -f /vulnfunc/java/common --batch-mode --update-snapshots package -DskipTests
5
5
6
- FROM maven:3-jdk-11-slim
7
- RUN apt-get update ; apt-get install -- no-install-recommends -y zip
6
+ FROM maven:3-eclipse-temurin-21-alpine
7
+ RUN apk add -- no-cache zip
8
8
COPY --from=package /vulnfunc/java/common/target/SootWrapper.jar /vulnfunc/java/common/
9
9
COPY java/common/*.sh /vulnfunc/java/common/
10
10
COPY java/maven/*.sh /vulnfunc/java/maven/
You can’t perform that action at this time.
0 commit comments