|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | + ~ Licensed to the Apache Software Foundation (ASF) under one or more |
| 4 | + ~ contributor license agreements. See the NOTICE file distributed with |
| 5 | + ~ this work for additional information regarding copyright ownership. |
| 6 | + ~ The ASF licenses this file to you under the Apache License, Version 2.0 |
| 7 | + ~ (the "License"); you may not use this file except in compliance with |
| 8 | + ~ the License. You may obtain a copy of the License at |
| 9 | + ~ |
| 10 | + ~ http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | + ~ |
| 12 | + ~ Unless required by applicable law or agreed to in writing, software |
| 13 | + ~ distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | + ~ See the License for the specific language governing permissions and |
| 16 | + ~ limitations under the License. |
| 17 | + --> |
| 18 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 19 | + <modelVersion>4.0.0</modelVersion> |
| 20 | + <parent> |
| 21 | + <groupId>org.apache.logging.log4j</groupId> |
| 22 | + <artifactId>log4j</artifactId> |
| 23 | + <version>${revision}</version> |
| 24 | + <relativePath>../log4j-parent</relativePath> |
| 25 | + </parent> |
| 26 | + |
| 27 | + <artifactId>jul-to-log4j</artifactId> |
| 28 | + <name>Apache Log4j JUL LogManager</name> |
| 29 | + <description>A `java.util.logging` LogManager that forwards events to the Log4j API.</description> |
| 30 | + |
| 31 | + <properties> |
| 32 | + <!-- |
| 33 | + ~ OSGi and JPMS options |
| 34 | + --> |
| 35 | + <bnd-extra-package-options> |
| 36 | + <!-- Optional annotations --> |
| 37 | + org.jspecify.*;resolution:=optional |
| 38 | + </bnd-extra-package-options> |
| 39 | + <bnd-extra-module-options> |
| 40 | + <!-- Optional modules can not be `transitive` --> |
| 41 | + org.jspecify;transitive=false |
| 42 | + </bnd-extra-module-options> |
| 43 | + </properties> |
| 44 | + |
| 45 | + <dependencies> |
| 46 | + |
| 47 | + <dependency> |
| 48 | + <groupId>org.apache.logging.log4j</groupId> |
| 49 | + <artifactId>log4j-api</artifactId> |
| 50 | + </dependency> |
| 51 | + |
| 52 | + <dependency> |
| 53 | + <groupId>org.apache.logging.log4j</groupId> |
| 54 | + <artifactId>log4j-kit</artifactId> |
| 55 | + </dependency> |
| 56 | + |
| 57 | + <dependency> |
| 58 | + <groupId>org.assertj</groupId> |
| 59 | + <artifactId>assertj-core</artifactId> |
| 60 | + <scope>test</scope> |
| 61 | + </dependency> |
| 62 | + |
| 63 | + <dependency> |
| 64 | + <groupId>org.hamcrest</groupId> |
| 65 | + <artifactId>hamcrest</artifactId> |
| 66 | + <scope>test</scope> |
| 67 | + </dependency> |
| 68 | + |
| 69 | + <dependency> |
| 70 | + <groupId>junit</groupId> |
| 71 | + <artifactId>junit</artifactId> |
| 72 | + <scope>test</scope> |
| 73 | + </dependency> |
| 74 | + |
| 75 | + <dependency> |
| 76 | + <groupId>org.apache.logging.log4j</groupId> |
| 77 | + <artifactId>log4j-async-logger</artifactId> |
| 78 | + <scope>test</scope> |
| 79 | + </dependency> |
| 80 | + |
| 81 | + <dependency> |
| 82 | + <groupId>org.apache.logging.log4j</groupId> |
| 83 | + <artifactId>log4j-core</artifactId> |
| 84 | + <scope>test</scope> |
| 85 | + </dependency> |
| 86 | + |
| 87 | + <dependency> |
| 88 | + <groupId>org.apache.logging.log4j</groupId> |
| 89 | + <artifactId>log4j-core-test</artifactId> |
| 90 | + <scope>test</scope> |
| 91 | + </dependency> |
| 92 | + </dependencies> |
| 93 | + |
| 94 | + <build> |
| 95 | + <plugins> |
| 96 | + <plugin> |
| 97 | + <groupId>org.apache.maven.plugins</groupId> |
| 98 | + <artifactId>maven-surefire-plugin</artifactId> |
| 99 | + <configuration> |
| 100 | + <systemPropertyVariables> |
| 101 | + <java.awt.headless>true</java.awt.headless> |
| 102 | + </systemPropertyVariables> |
| 103 | + <argLine>-Xms256m -Xmx1024m</argLine> |
| 104 | + <forkCount>1</forkCount> |
| 105 | + <reuseForks>false</reuseForks> |
| 106 | + </configuration> |
| 107 | + <dependencies> |
| 108 | + <!-- The `surefire-junit-platform` provider initializes JUL before tests start --> |
| 109 | + <dependency> |
| 110 | + <groupId>org.apache.maven.surefire</groupId> |
| 111 | + <artifactId>surefire-junit47</artifactId> |
| 112 | + <version>${surefire.version}</version> |
| 113 | + </dependency> |
| 114 | + </dependencies> |
| 115 | + <executions> |
| 116 | + <execution> |
| 117 | + <id>default-test</id> |
| 118 | + <goals> |
| 119 | + <goal>test</goal> |
| 120 | + </goals> |
| 121 | + <phase>test</phase> |
| 122 | + <configuration> |
| 123 | + <!-- Use custom `j.u.l.LogManager` --> |
| 124 | + <systemPropertyVariables> |
| 125 | + <java.util.logging.manager>org.apache.logging.jul.tolog4j.LogManager</java.util.logging.manager> |
| 126 | + </systemPropertyVariables> |
| 127 | + </configuration> |
| 128 | + </execution> |
| 129 | + </executions> |
| 130 | + </plugin> |
| 131 | + </plugins> |
| 132 | + </build> |
| 133 | +</project> |
0 commit comments