Skip to content

Commit 0aa7f59

Browse files
committed
Add usage of toolchain so it can be releaed with Java 11
1 parent 2a0531e commit 0aa7f59

File tree

3 files changed

+38
-2
lines changed

3 files changed

+38
-2
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,11 @@ 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:
29-
java-version: ${{ inputs.jdk }}
29+
java-version: |
30+
${{ inputs.jdk }}
31+
25
3032
distribution: temurin
3133
- name: Run tests
3234
run: mvn -s .github/maven-ci-settings.xml -q clean verify -B ${{ inputs.profile }}

pom.xml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,32 @@
8181
<module>vertx-core</module>
8282
<module>vertx-core-jackson-v3</module>
8383
</modules>
84+
<build>
85+
<plugins>
86+
<plugin>
87+
<groupId>org.apache.maven.plugins</groupId>
88+
<artifactId>maven-toolchains-plugin</artifactId>
89+
<version>3.2.0</version>
90+
<executions>
91+
<execution>
92+
<goals>
93+
<goal>toolchain</goal>
94+
</goals>
95+
</execution>
96+
</executions>
97+
<configuration>
98+
<toolchains>
99+
<jdk>
100+
<version>11</version>
101+
</jdk>
102+
<jdk>
103+
<version>25</version>
104+
</jdk>
105+
</toolchains>
106+
</configuration>
107+
</plugin>
108+
</plugins>
109+
</build>
84110
</profile>
85111
</profiles>
86112

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)