|
43 | 43 | <!-- Dependencies (alphabetical) --> |
44 | 44 | <assertj.version>3.26.3</assertj.version> |
45 | 45 | <junit.version>5.11.1</junit.version> |
46 | | - <log4j.version>2.24.1</log4j.version> |
| 46 | + <log4j.version>2.25.0-SNAPSHOT</log4j.version> |
47 | 47 | <logback.version>1.5.8</logback.version> |
48 | 48 | <slf4j.version>2.0.16</slf4j.version> |
49 | 49 |
|
|
291 | 291 | </profile> |
292 | 292 |
|
293 | 293 | <!-- |
294 | | - ~ Enable this profile to use Log4j Core as logging implementation. |
| 294 | + ~ Enable this profile to use Log4j Core as logging implementation with a manually crafted metadata file. |
295 | 295 | --> |
296 | 296 | <profile> |
297 | | - <id>use-log4j-core</id> |
| 297 | + <id>use-log4j-core-minimal</id> |
298 | 298 |
|
299 | 299 | <properties> |
300 | 300 | <integration-tests-include>**/StandardIT.class</integration-tests-include> |
|
311 | 311 | <build> |
312 | 312 | <plugins> |
313 | 313 | <!-- |
314 | | - ~ Log4j Core needs additional metadata |
| 314 | + ~ Use a different source of Log4j Core metadata. |
315 | 315 | --> |
316 | 316 | <plugin> |
317 | 317 | <groupId>org.graalvm.buildtools</groupId> |
318 | 318 | <artifactId>native-maven-plugin</artifactId> |
319 | 319 | <configuration> |
| 320 | + <buildArgs> |
| 321 | + <arg>--exclude-config</arg> |
| 322 | + <arg>log4j-core.*jar</arg> |
| 323 | + <arg>META-INF/native-image/org\.apache\.logging\.log4j/log4j-core/reflect-config\.json</arg> |
| 324 | + </buildArgs> |
320 | 325 | <metadataRepository> |
321 | 326 | <enabled>true</enabled> |
322 | 327 | <localPath>${project.basedir}/src/reachability-metadata/minimal</localPath> |
|
327 | 332 | </build> |
328 | 333 | </profile> |
329 | 334 |
|
| 335 | + <!-- |
| 336 | + ~ Enable this profile to use Log4j Core as logging implementation with a full metadata file. |
| 337 | + --> |
| 338 | + <profile> |
| 339 | + <id>use-log4j-core</id> |
| 340 | + |
| 341 | + <properties> |
| 342 | + <integration-tests-include>**/StandardIT.class</integration-tests-include> |
| 343 | + </properties> |
| 344 | + |
| 345 | + <dependencies> |
| 346 | + <dependency> |
| 347 | + <groupId>org.apache.logging.log4j</groupId> |
| 348 | + <artifactId>log4j-core</artifactId> |
| 349 | + <scope>runtime</scope> |
| 350 | + </dependency> |
| 351 | + </dependencies> |
| 352 | + </profile> |
| 353 | + |
330 | 354 | <!-- |
331 | 355 | ~ Enable this profile to use Logback as logging implementation. |
332 | 356 | --> |
|
383 | 407 |
|
384 | 408 | <build> |
385 | 409 | <plugins> |
386 | | - <!-- |
387 | | - ~ SimpleLog needs a configuration file |
388 | | - --> |
389 | | - <plugin> |
390 | | - <groupId>org.graalvm.buildtools</groupId> |
391 | | - <artifactId>native-maven-plugin</artifactId> |
392 | | - <configuration> |
393 | | - <metadataRepository> |
394 | | - <enabled>true</enabled> |
395 | | - </metadataRepository> |
396 | | - <buildArgs> |
397 | | - <arg>-H:IncludeResources=log4j2.simplelog.properties</arg> |
398 | | - </buildArgs> |
399 | | - </configuration> |
400 | | - </plugin> |
401 | 410 | <!-- |
402 | 411 | ~ SimpleLogger needs some system properties |
403 | 412 | --> |
|
0 commit comments