Skip to content

Commit a3a4c6c

Browse files
authored
Move jspecify.version property and java8-tests profile from log4j-bom to log4j-parent (#3763)
1 parent d5899c8 commit a3a4c6c

File tree

3 files changed

+60
-48
lines changed

3 files changed

+60
-48
lines changed

log4j-parent/pom.xml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@
108108
<jeromq.version>0.6.0</jeromq.version>
109109
<jmdns.version>3.6.1</jmdns.version>
110110
<jmh.version>1.37</jmh.version>
111+
<jspecify.version>1.0.0</jspecify.version>
111112
<junit.version>4.13.2</junit.version>
112113
<junit-jupiter.version>5.13.1</junit-jupiter.version>
113114
<junit-pioneer.version>1.9.1</junit-pioneer.version>
@@ -1143,6 +1144,53 @@
11431144

11441145
<profiles>
11451146

1147+
<!-- `java8-tests` profile to force using Java 8 while running tests -->
1148+
<profile>
1149+
1150+
<id>java8-tests</id>
1151+
1152+
<activation>
1153+
<property>
1154+
<name>env.CI</name>
1155+
<value>true</value>
1156+
</property>
1157+
</activation>
1158+
1159+
<!-- There are certain Java 8 bugs[1] that cause Mockito failures[2].
1160+
Adding necessary dependencies to workaround them.
1161+
[1] https://bugs.openjdk.org/browse/JDK-8152174
1162+
[2] https://github.com/mockito/mockito/issues/1449 -->
1163+
<dependencies>
1164+
<dependency>
1165+
<groupId>org.jspecify</groupId>
1166+
<artifactId>jspecify</artifactId>
1167+
<version>${jspecify.version}</version>
1168+
<scope>test</scope>
1169+
</dependency>
1170+
</dependencies>
1171+
1172+
<build>
1173+
<plugins>
1174+
<plugin>
1175+
<groupId>org.apache.maven.plugins</groupId>
1176+
<artifactId>maven-surefire-plugin</artifactId>
1177+
<executions>
1178+
<!-- Modifies only the `default-test` run -->
1179+
<execution>
1180+
<id>default-test</id>
1181+
<configuration>
1182+
<jdkToolchain>
1183+
<version>[1.8, 9)</version>
1184+
</jdkToolchain>
1185+
</configuration>
1186+
</execution>
1187+
</executions>
1188+
</plugin>
1189+
</plugins>
1190+
</build>
1191+
1192+
</profile>
1193+
11461194
<!-- `plugin-processing` profile containing configuration specific to `@Plugin`-annotated members -->
11471195
<profile>
11481196

pom.xml

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,6 @@
357357
<!-- =====================================================
358358
Direct dependency version properties (in alphabetical order)
359359
===================================================== -->
360-
<jspecify.version>1.0.0</jspecify.version>
361360
<log4j-docgen.version>0.9.0</log4j-docgen.version>
362361
<node.version>21.7.1</node.version>
363362
<npm.version>10.5.0</npm.version>
@@ -956,53 +955,6 @@
956955

957956
<profiles>
958957

959-
<!-- `java8-tests` profile to force using Java 8 while running tests -->
960-
<profile>
961-
962-
<id>java8-tests</id>
963-
964-
<activation>
965-
<property>
966-
<name>env.CI</name>
967-
<value>true</value>
968-
</property>
969-
</activation>
970-
971-
<!-- There are certain Java 8 bugs[1] that cause Mockito failures[2].
972-
Adding necessary dependencies to workaround them.
973-
[1] https://bugs.openjdk.org/browse/JDK-8152174
974-
[2] https://github.com/mockito/mockito/issues/1449 -->
975-
<dependencies>
976-
<dependency>
977-
<groupId>org.jspecify</groupId>
978-
<artifactId>jspecify</artifactId>
979-
<version>${jspecify.version}</version>
980-
<scope>test</scope>
981-
</dependency>
982-
</dependencies>
983-
984-
<build>
985-
<plugins>
986-
<plugin>
987-
<groupId>org.apache.maven.plugins</groupId>
988-
<artifactId>maven-surefire-plugin</artifactId>
989-
<executions>
990-
<!-- Modifies only the `default-test` run -->
991-
<execution>
992-
<id>default-test</id>
993-
<configuration>
994-
<jdkToolchain>
995-
<version>[1.8, 9)</version>
996-
</jdkToolchain>
997-
</configuration>
998-
</execution>
999-
</executions>
1000-
</plugin>
1001-
</plugins>
1002-
</build>
1003-
1004-
</profile>
1005-
1006958
<profile>
1007959
<id>rerun-tests</id>
1008960
<activation>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<entry xmlns="https://logging.apache.org/xml/ns"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="
5+
https://logging.apache.org/xml/ns
6+
https://logging.apache.org/xml/ns/log4j-changelog-0.xsd"
7+
type="fixed">
8+
<issue id="3758" link="https://github.com/apache/logging-log4j2/issues/3758"/>
9+
<description format="asciidoc">
10+
Move `jspecify.version` Maven property and `java8-tests` profile from `log4j-bom` to `log4j-parent`, since the former gets trimmed before deployment.
11+
</description>
12+
</entry>

0 commit comments

Comments
 (0)