Skip to content

Commit aebb2da

Browse files
committed
Add usage of toolchain so it can be releaed with Java 11
1 parent 3a0b95c commit aebb2da

File tree

3 files changed

+45
-1
lines changed

3 files changed

+45
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
with:
2525
ref: ${{ inputs.branch }}
2626
- name: Install JDK
27-
uses: actions/setup-java@v2
27+
uses: actions/setup-java@v5
2828
with:
2929
java-version: ${{ inputs.jdk }}
3030
distribution: temurin

pom.xml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
</modules>
7272

7373
<profiles>
74+
7475
<profile>
7576
<id>Java25</id>
7677
<activation>
@@ -82,6 +83,41 @@
8283
<module>vertx-core-jackson-v3</module>
8384
</modules>
8485
</profile>
86+
87+
<!--
88+
This profile can be activated when a toolchain is required, the main use case is building
89+
with Java 25 features with any JDK.
90+
-->
91+
<profile>
92+
<id>toolchains</id>
93+
<build>
94+
<plugins>
95+
<plugin>
96+
<groupId>org.apache.maven.plugins</groupId>
97+
<artifactId>maven-toolchains-plugin</artifactId>
98+
<version>3.2.0</version>
99+
<executions>
100+
<execution>
101+
<goals>
102+
<goal>toolchain</goal>
103+
</goals>
104+
</execution>
105+
</executions>
106+
<configuration>
107+
<toolchains>
108+
<jdk>
109+
<version>11</version>
110+
</jdk>
111+
<jdk>
112+
<version>25</version>
113+
</jdk>
114+
</toolchains>
115+
</configuration>
116+
</plugin>
117+
</plugins>
118+
</build>
119+
</profile>
120+
85121
</profiles>
86122

87123
</project>

vertx-core-jackson-v3/pom.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727

2828
<properties>
2929
<maven.compiler.release>25</maven.compiler.release>
30+
<maven.install.skip>true</maven.install.skip>
3031
</properties>
3132

3233
<dependencies>
@@ -72,6 +73,13 @@
7273
<build>
7374
<pluginManagement>
7475
<plugins>
76+
<plugin>
77+
<groupId>org.apache.maven.plugins</groupId>
78+
<artifactId>maven-jar-plugin</artifactId>
79+
<configuration>
80+
<skip>true</skip>
81+
</configuration>
82+
</plugin>
7583
</plugins>
7684
</pluginManagement>
7785
<plugins>

0 commit comments

Comments
 (0)