Skip to content

Commit a0567de

Browse files
committed
BAEL-6598: Guide to Maven Toolchains usage example
1 parent c03e2bf commit a0567de

File tree

1 file changed

+6
-3
lines changed
  • maven-modules/maven-toolchains

1 file changed

+6
-3
lines changed

maven-modules/maven-toolchains/pom.xml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
<maven.compiler.target>21</maven.compiler.target>
1717
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1818
<protobuf.version>3.0.0</protobuf.version>
19+
20+
<!-- For internal build server -->
21+
<toolchain.jdk.version>[17,)</toolchain.jdk.version>
1922
</properties>
2023

2124
<dependencies>
@@ -31,11 +34,13 @@
3134
<plugin>
3235
<groupId>org.apache.maven.plugins</groupId>
3336
<artifactId>maven-toolchains-plugin</artifactId>
34-
<version>1.1</version>
37+
<version>3.2.0</version>
3538
<executions>
3639
<execution>
3740
<goals>
3841
<goal>toolchain</goal>
42+
<!-- For internal build server -->
43+
<goal>select-jdk-toolchain</goal>
3944
</goals>
4045
</execution>
4146
</executions>
@@ -44,11 +49,9 @@
4449
<jdk>
4550
<version>24</version>
4651
<vendor>liberica</vendor>
47-
<require>false</require> <!-- for the Jenkins build server -->
4852
</jdk>
4953
<protobuf>
5054
<version>${protobuf.version}</version>
51-
<require>false</require> <!-- for the Jenkins build server -->
5255
</protobuf>
5356
</toolchains>
5457
</configuration>

0 commit comments

Comments
 (0)