Skip to content

Commit 56ea235

Browse files
committed
[AMQ-9777] Migrate to using multi-release jar for activemq-client
1 parent edd358d commit 56ea235

File tree

10 files changed

+61
-397
lines changed

10 files changed

+61
-397
lines changed

activemq-client-jdk21-test/pom.xml

Lines changed: 0 additions & 98 deletions
This file was deleted.

activemq-client-jdk21/pom.xml

Lines changed: 0 additions & 237 deletions
This file was deleted.

activemq-client/pom.xml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,15 +200,21 @@
200200
<configuration>
201201
<instructions>
202202
<Import-Package>
203+
!java.*,
204+
!javax.naming*,
205+
!javax.net*,
206+
!org.apache.activemq*,
203207
!com.google.errorprone.annotations,
204208
!com.google.errorprone.annotations.concurrent,
205209
com.thoughtworks.xstream.*;resolution:="optional",
210+
javax.jmdns.*;resolution:="optional",
206211
*
207212
</Import-Package>
208213
<Private-Package>
209214
com.google.errorprone.annotations,
210215
com.google.errorprone.annotations.concurrent
211216
</Private-Package>
217+
<Multi-Release>true</Multi-Release>
212218
<_noee>true</_noee>
213219
</instructions>
214220
</configuration>
@@ -396,5 +402,32 @@
396402
</plugins>
397403
</build>
398404
</profile>
405+
<profile>
406+
<id>jdk21-plus</id>
407+
<activation>
408+
<jdk>[21,)</jdk>
409+
</activation>
410+
<build>
411+
<plugins>
412+
<plugin>
413+
<artifactId>maven-compiler-plugin</artifactId>
414+
<executions>
415+
<execution>
416+
<id>java21-compile</id>
417+
<phase>compile</phase>
418+
<goals>
419+
<goal>compile</goal>
420+
</goals>
421+
<configuration>
422+
<release>21</release> <!-- Specific Java version for alternative classes -->
423+
<compileSourceRoots>${project.basedir}/src/main/java21</compileSourceRoots>
424+
<multiReleaseOutput>true</multiReleaseOutput>
425+
</configuration>
426+
</execution>
427+
</executions>
428+
</plugin>
429+
</plugins>
430+
</build>
431+
</profile>
399432
</profiles>
400433
</project>

0 commit comments

Comments
 (0)