You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
seo-title: Java Toolchains in Liberty Build Plugins in 26.0.0.2- OpenLiberty.io
9
-
seo-description: This release introduces Java Toolchains support in the Liberty Maven and Gradle plugins, allowing developers to decouple the JDK used to run build tools from the JDK used to run the Liberty server.
10
-
blog_description: This release introduces Java Toolchains support in the Liberty Maven and Gradle plugins, allowing developers to decouple the JDK used to run build tools from the JDK used to run the Liberty server.
9
+
seo-description: This release introduces Java Toolchains support in the Liberty Maven and Gradle plugins, enabling developers to decouple the JDK used to run build tools from the JDK used to run the Liberty server.
10
+
blog_description: This release introduces Java Toolchains support in the Liberty Maven and Gradle plugins, enabling developers to decouple the JDK used to run build tools from the JDK used to run the Liberty server.
@@ -52,7 +52,7 @@ Navaneeth S Nair <https://github.com/navaneethsnair1>
52
52
// change the "IMAGE CAPTION" to a couple words of what the image is
53
53
// // // // // // // //
54
54
55
-
This release introduces Java Toolchains support in the Liberty Maven and Gradle plugins, allowing developers to decouple the JDK used to run build tools from the JDK used to run the Liberty server.
55
+
This release introduces Java Toolchains support in the Liberty Maven and Gradle plugins, enabling developers to decouple the JDK used to run build tools from the JDK used to run the Liberty server.
56
56
57
57
// // // // // // // //
58
58
// In the preceding section:
@@ -150,19 +150,15 @@ image::img/blog/blog_btn_stack.svg[Ask a question on Stack Overflow, align="cent
150
150
[#java_toolchains]
151
151
== Java Toolchains in Liberty Build Plugins
152
152
153
-
In this update, Open Liberty introduces support for Java Toolchains in the Liberty Maven and Gradle plugins. This enhancement allows developers to decouple the JDK used to run their build tools from the JDK used to run the Liberty server, providing greater flexibility and environmental consistency.
In this update, Open Liberty introduces support for Java Toolchains in the Liberty Maven and Gradle plugins. This enhancement enables developers to decouple the JDK used to run their build tools from the JDK used to run the Liberty server, providing greater flexibility and environmental consistency.
158
154
159
155
=== Java Toolchains support
160
156
161
157
Open Liberty build plugins now support the standard Java Toolchain mechanism.
162
158
Previously, Liberty plugins were restricted to using the same Java version that was running Maven or Gradle.
163
159
This often forced developers to use older JDKs for their entire build process if their application required a specific legacy runtime.
164
160
165
-
With Java Toolchains, you can now run your build tool on a modern JDK (e.g., Java 21). This ensures the Liberty server and its tasks (such as dev mode or JSP compilation) execute on a different, specified JDK (e.g., Java 8 or 11).
161
+
With Java Toolchains, you can now run your build tool on a modern JDK (for example, Java 21). This helps ensure that the Liberty server and its tasks (such as dev mode or JSP compilation) execute using a different, specified JDK (for example, Java 8 or 11).
166
162
167
163
=== Maven Plugin integration
168
164
@@ -183,7 +179,7 @@ The plugin acknowledges the JDK vendor and version constraints that are defined
183
179
184
180
=== Gradle Plugin integration
185
181
186
-
For Gradle users, the Liberty Gradle plugin now acknowledges the native `java { toolchain { ... } }` configuration block. This configuration provides a unified way to manage Java versions in multi-project builds where different services might have different runtime requirements.
182
+
For Gradle users, the Liberty Gradle plugin now recognizes the native `java { toolchain { ... } }` configuration block. This configuration provides a unified way to manage Java versions across multi-project builds, where different services might have different runtime requirements.
187
183
188
184
For technical specifics on how the plugin resolves these environments, see the link:https://github.com/OpenLiberty/ci.gradle/blob/main/docs/toolchain.md[Liberty Gradle Plugin Toolchain documentation].
0 commit comments