Skip to content

Commit cb0d211

Browse files
Merge pull request #4716 from OpenLiberty/26.0.0.2-post
Update 26.0.0.2-post into draft
2 parents 1ecd526 + eb8de39 commit cb0d211

File tree

1 file changed

+260
-0
lines changed

1 file changed

+260
-0
lines changed

posts/2026-02-24-26.0.0.2.adoc

Lines changed: 260 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,260 @@
1+
---
2+
layout: post
3+
title: "Java Toolchains in Liberty Build Plugins in 26.0.0.2"
4+
# Do NOT change the categories section
5+
categories: blog
6+
author_picture: https://avatars3.githubusercontent.com/navaneethsnair1
7+
author_github: https://github.com/navaneethsnair1
8+
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.
11+
open-graph-image: https://openliberty.io/img/twitter_card.jpg
12+
open-graph-image-alt: Open Liberty Logo
13+
blog-available-in-languages:
14+
- lang: ja
15+
path: /ja/blog/2026/01/27/26.0.0.2.html
16+
---
17+
= Java Toolchains in Liberty Build Plugins in 26.0.0.2
18+
Navaneeth S Nair <https://github.com/navaneethsnair1>
19+
:imagesdir: /
20+
:url-prefix:
21+
:url-about: /
22+
//Blank line here is necessary before starting the body of the post.
23+
24+
// // // // // // // //
25+
// In the preceding section:
26+
// Do not insert any blank lines between any of the lines.
27+
// Do not remove or edit the variables on the lines beneath the author name.
28+
//
29+
// "open-graph-image" is set to OL logo. Whenever possible update this to a more appropriate/specific image (For example if present a image that is being used in the post). However, it
30+
// can be left empty which will set it to the default
31+
//
32+
// "open-graph-image-alt" is a description of what is in the image (not a caption). When changing "open-graph-image" to
33+
// a custom picture, you must provide a custom string for "open-graph-image-alt".
34+
//
35+
// Replace TITLE with the blog post title eg: MicroProfile 3.3 is now available on Open Liberty 20.0.0.4
36+
// Replace navaneethsnair1 with your GitHub username eg: lauracowen
37+
// Replace DESCRIPTION with a short summary (~60 words) of the release (a more succinct version of the first paragraph of the post).
38+
// Replace Navaneeth S Nair with your name as you'd like it to be displayed, eg: Laura Cowen
39+
//
40+
// Example post: 2020-04-09-microprofile-3-3-open-liberty-20004.adoc
41+
//
42+
// If adding image into the post add :
43+
// -------------------------
44+
// [.img_border_light]
45+
// image::img/blog/FILE_NAME[IMAGE CAPTION ,width=70%,align="center"]
46+
// -------------------------
47+
// "[.img_border_light]" = This adds a faint grey border around the image to make its edges sharper. Use it around screenshots but not
48+
// around diagrams. Then double check how it looks.
49+
// There is also a "[.img_border_dark]" class which tends to work best with screenshots that are taken on dark
50+
// backgrounds.
51+
// Change "FILE_NAME" to the name of the image file. Also make sure to put the image into the right folder which is: img/blog
52+
// change the "IMAGE CAPTION" to a couple words of what the image is
53+
// // // // // // // //
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.
56+
57+
// // // // // // // //
58+
// In the preceding section:
59+
// Leave any instances of `tag::xxxx[]` or `end:xxxx[]` as they are.
60+
//
61+
// Replace RELEASE_SUMMARY with a short paragraph that summarises the release. Start with the lead feature but also summarise what else is new in the release. You will agree which will be the lead feature with the reviewers so you can just leave a placeholder here until after the initial review.
62+
// // // // // // // //
63+
64+
// // // // // // // //
65+
// Replace the following throughout the document:
66+
// Replace 26.0.0.2 with the version number of Open Liberty, eg: 22.0.0.2
67+
// Replace 26001 with the version number of Open Liberty wihtout the periods, eg: 22002
68+
// // // // // // // //
69+
70+
In link:{url-about}[Open Liberty] 26.0.0.2:
71+
72+
* <<java_toolchains, Java Toolchains in Liberty Build Plugins>>
73+
* <<bugs, Notable bug fixes>>
74+
75+
View the list of fixed bugs in link:https://github.com/OpenLiberty/open-liberty/issues?q=label%3Arelease%3A26002+label%3A%22release+bug%22[26.0.0.2].
76+
77+
Check out link:{url-prefix}/blog/?search=release&search!=beta[previous Open Liberty GA release blog posts].
78+
79+
80+
[#run]
81+
82+
// // // // // // // //
83+
// LINKS
84+
//
85+
// OpenLiberty.io site links:
86+
// link:{url-prefix}/guides/maven-intro.html[Maven]
87+
//
88+
// Off-site links:
89+
//link:https://openapi-generator.tech/docs/installation#jar[Download Instructions]
90+
//
91+
// IMAGES
92+
//
93+
// Place images in ./img/blog/
94+
// Use the syntax:
95+
// image::/img/blog/log4j-rhocp-diagrams/current-problem.png[Logging problem diagram,width=70%,align="center"]
96+
// // // // // // // //
97+
98+
== Develop and run your apps using 26.0.0.2
99+
100+
If you're using link:{url-prefix}/guides/maven-intro.html[Maven], include the following in your `pom.xml` file:
101+
102+
[source,xml]
103+
----
104+
<plugin>
105+
<groupId>io.openliberty.tools</groupId>
106+
<artifactId>liberty-maven-plugin</artifactId>
107+
<version>3.12.0</version>
108+
</plugin>
109+
----
110+
111+
Or for link:{url-prefix}/guides/gradle-intro.html[Gradle], include the following in your `build.gradle` file:
112+
113+
[source,gradle]
114+
----
115+
buildscript {
116+
repositories {
117+
mavenCentral()
118+
}
119+
dependencies {
120+
classpath 'io.openliberty.tools:liberty-gradle-plugin:3.10.0'
121+
}
122+
}
123+
apply plugin: 'liberty'
124+
----
125+
// // // // // // // //
126+
// In the preceding section:
127+
// Replace the Maven `3.11.5` with the latest version of the plugin: https://search.maven.org/artifact/io.openliberty.tools/liberty-maven-plugin
128+
// Replace the Gradle `3.9.5` with the latest version of the plugin: https://search.maven.org/artifact/io.openliberty.tools/liberty-gradle-plugin
129+
// TODO: Update GHA to automatically do the above. If the maven.org is problematic, then could fallback to using the GH Releases for the plugins
130+
// // // // // // // //
131+
132+
Or if you're using link:{url-prefix}/docs/latest/container-images.html[container images]:
133+
134+
[source]
135+
----
136+
FROM icr.io/appcafe/open-liberty
137+
----
138+
139+
Or take a look at our link:{url-prefix}/start/[Downloads page].
140+
141+
If you're using link:https://plugins.jetbrains.com/plugin/14856-liberty-tools[IntelliJ IDEA], link:https://marketplace.visualstudio.com/items?itemName=Open-Liberty.liberty-dev-vscode-ext[Visual Studio Code] or link:https://marketplace.eclipse.org/content/liberty-tools[Eclipse IDE], you can also take advantage of our open source link:https://openliberty.io/docs/latest/develop-liberty-tools.html[Liberty developer tools] to enable effective development, testing, debugging and application management all from within your IDE.
142+
143+
[link=https://stackoverflow.com/tags/open-liberty]
144+
image::img/blog/blog_btn_stack.svg[Ask a question on Stack Overflow, align="center"]
145+
146+
// // // // DO NOT MODIFY THIS COMMENT BLOCK <GHA-BLOG-TOPIC> // // // //
147+
// Blog issue: https://github.com/OpenLiberty/open-liberty/issues/34101
148+
// Contact/Reviewer: venmanyarun
149+
// // // // // // // //
150+
[#java_toolchains]
151+
== Java Toolchains in Liberty Build Plugins
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.
154+
155+
* link:https://www.google.com/search?q=%23java-toolchains[Java Toolchains support]
156+
* link:https://www.google.com/search?q=%23maven-integration[Maven Plugin integration]
157+
* link:https://www.google.com/search?q=%23gradle-integration[Gradle Plugin integration]
158+
159+
=== Java Toolchains support
160+
161+
Open Liberty build plugins now support the standard Java Toolchain mechanism.
162+
Previously, Liberty plugins were restricted to using the same Java version that was running Maven or Gradle.
163+
This often forced developers to use older JDKs for their entire build process if their application required a specific legacy runtime.
164+
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).
166+
167+
=== Maven Plugin integration
168+
169+
The Liberty Maven plugin now integrates seamlessly with the maven-toolchain-plugin. To use this feature, define your available JDKs in your `~/.m2/toolchains.xml` file. The plugin automatically detects and uses the toolchain that is specified in your project's `pom.xml` file.
170+
171+
For detailed configuration steps and parameters, see the link:https://github.com/OpenLiberty/ci.maven/blob/main/docs/toolchain.md[Liberty Maven Plugin Toolchain documentation].
172+
173+
[source,xml]
174+
----
175+
<plugin>
176+
<groupId>io.openliberty.tools</groupId>
177+
<artifactId>liberty-maven-plugin</artifactId>
178+
<version>3.12.0</version>
179+
</plugin>
180+
----
181+
182+
The plugin acknowledges the JDK vendor and version constraints that are defined in your Maven profiles, helping to ensure that your server environment remains consistent across different developer machines and CI/CD pipelines.
183+
184+
=== Gradle Plugin integration
185+
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.
187+
188+
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].
189+
190+
When a toolchain is configured in your `build.gradle`, the Liberty plugin uses that specific Java runtime for all server-related tasks, including `libertyDev` and `libertyStart`.
191+
192+
=== Try it now
193+
194+
To start using Java Toolchains, update your build tools to the latest versions of the Liberty Maven or Gradle plugins.
195+
196+
*For Maven:*
197+
198+
[source,xml]
199+
----
200+
<plugin>
201+
<groupId>io.openliberty.tools</groupId>
202+
<artifactId>liberty-maven-plugin</artifactId>
203+
<version>3.12.0</version>
204+
<configuration>
205+
<jdkToolchain>
206+
<version>11</version>
207+
<vendor>temurin</vendor>
208+
</jdkToolchain>
209+
</configuration>
210+
</plugin>
211+
----
212+
213+
*For Gradle:*
214+
215+
[source,gradle]
216+
----
217+
buildscript {
218+
repositories {
219+
mavenCentral()
220+
}
221+
dependencies {
222+
classpath 'io.openliberty.tools:liberty-gradle-plugin:3.10.0'
223+
}
224+
}
225+
apply plugin: 'liberty'
226+
227+
228+
java {
229+
toolchain {
230+
languageVersion = JavaLanguageVersion.of(17)
231+
// Optional: specify vendor
232+
// vendor = JvmVendorSpec.ADOPTIUM
233+
}
234+
}
235+
----
236+
237+
// DO NOT MODIFY THIS LINE. </GHA-BLOG-TOPIC>
238+
239+
[#bugs]
240+
== Notable bugs fixed in this release
241+
242+
243+
We’ve spent some time fixing bugs. The following sections describe the issues resolved in this release. If you’re interested, here’s the link:https://github.com/OpenLiberty/open-liberty/issues?q=label%3Arelease%3A26002+label%3A%22release+bug%22[full list of bugs fixed in 26.0.0.1].
244+
245+
* link:https://github.com/OpenLiberty/open-liberty/issues/33927[IBM WebSphere Application Server Liberty is affected by a remote code execution vulnerability (CVE-2025-14914 CVSS 7.6)]
246+
* link:https://github.com/OpenLiberty/open-liberty/issues/32996["WARNING: package sun.security.action not in java.base" shows up in console.log starting in Java 24]
247+
248+
// // // // // // // //
249+
// In the preceding section:
250+
// For this section ask either Michal Broz or Tom Evans or the #openliberty-release-blog channel for Notable bug fixes in this release.
251+
// Present them as a list in the order as provided, linking to the issue and providing a short description of the bug and the resolution.
252+
// If the issue on Github is missing any information, leave a comment in the issue along the lines of:
253+
// "@[issue_owner(s)] please update the description of this `release bug` using the [bug report template](https://github.com/OpenLiberty/open-liberty/issues/new?assignees=&labels=release+bug&template=bug_report.md&title=)"
254+
// Feel free to message the owner(s) directly as well, especially if no action has been taken by them.
255+
// For inspiration about how to write this section look at previous blogs e.g- 20.0.0.10 or 21.0.0.12 (https://openliberty.io/blog/2021/11/26/jakarta-ee-9.1.html#bugs)
256+
// // // // // // // //
257+
258+
== Get Open Liberty 26.0.0.2 now
259+
260+
Available through <<run,Maven, Gradle, Docker, and as a downloadable archive>>.

0 commit comments

Comments
 (0)