Skip to content

Commit 551ba16

Browse files
committed
[pom] Override parent until 49 with enforcer / impsort adjustments and remove changing to java 16 with java 16+
Only tests needed the higher value, remove that as unnecessary. Tests remain compliant with java 17+ at this point. This further fixes the resulting binary so it doesn't matter what jvm we use to release with and no extra overrides are necessary
1 parent c894a67 commit 551ba16

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

pom.xml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@
6767
<java.version>8</java.version>
6868
<java.release.version>8</java.release.version>
6969

70+
<!-- Override impsort comliance to 17 (remove after parent 49 release) -->
71+
<impsort.compliance>17</impsort.compliance>
72+
7073
<clirr.comparisonVersion>3.4.6</clirr.comparisonVersion>
7174

7275
<byte-buddy.version>1.15.11</byte-buddy.version>
@@ -393,6 +396,20 @@
393396
</excludes>
394397
</configuration>
395398
</plugin>
399+
400+
<!-- Remove enforcer entirely after parent 49 release -->
401+
<plugin>
402+
<groupId>org.apache.maven.plugins</groupId>
403+
<artifactId>maven-enforcer-plugin</artifactId>
404+
<configuration>
405+
<rules>
406+
<enforceBytecodeVersion>
407+
<maxJdkVersion>${java.version}</maxJdkVersion>
408+
<ignoredScopes>provided,test</ignoredScopes>
409+
</enforceBytecodeVersion>
410+
</rules>
411+
</configuration>
412+
</plugin>
396413
</plugins>
397414
</build>
398415

@@ -403,8 +420,6 @@
403420
<jdk>[16,)</jdk>
404421
</activation>
405422
<properties>
406-
<java.version>16</java.version>
407-
<java.release.version>16</java.release.version>
408423
<excludedGroups>TestcontainersTests,RequireIllegalAccess</excludedGroups>
409424
</properties>
410425
</profile>

0 commit comments

Comments
 (0)