This is an automated email from the ASF dual-hosted git repository.
lprimak pushed a commit to branch 3.x
in repository https://gitbox.apache.org/repos/asf/shiro.git
The following commit(s) were added to refs/heads/3.x by this push:
new 0babe0363 enh: introduce multi-release jar fixes #1984
0babe0363 is described below
commit 0babe0363f541e01a6738df9777838a844d66325
Author: lprimak <[email protected]>
AuthorDate: Sat Jan 24 21:40:19 2026 -0600
enh: introduce multi-release jar
fixes #1984
---
pom.xml | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/pom.xml b/pom.xml
index a8e653373..3f4eddfa5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -568,6 +568,7 @@
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<showWarnings>true</showWarnings>
+ <multiReleaseOutput>true</multiReleaseOutput>
<compilerArgs>
<arg>-Xlint:deprecation</arg>
<arg>-Xlint:unchecked</arg>
@@ -580,6 +581,28 @@
</annotationProcessorPath>
</annotationProcessorPaths>
</configuration>
+ <executions>
+ <execution>
+ <id>jdk21-compile</id>
+ <goals>
+ <goal>compile</goal>
+ </goals>
+ <configuration>
+ <release>21</release>
+
<compileSourceRoots>${project.build.sourceDirectory}21</compileSourceRoots>
+ </configuration>
+ </execution>
+ <execution>
+ <id>jdk25-compile</id>
+ <goals>
+ <goal>compile</goal>
+ </goals>
+ <configuration>
+ <release>25</release>
+
<compileSourceRoots>${project.build.sourceDirectory}25</compileSourceRoots>
+ </configuration>
+ </execution>
+ </executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>