@@ -249,7 +249,7 @@ private void process(Plugin plugin) {
249249 plugin .checkoutBranch (ghService );
250250
251251 // Minimum JDK to run openrewrite
252- plugin .withJDK (JDK .JAVA_21 );
252+ plugin .withJDK (JDK .JAVA_25 );
253253
254254 // Collect metadata and move metadata from the target directory of the plugin to the common cache
255255 if (!plugin .hasMetadata () || config .isFetchMetadataOnly ()) {
@@ -360,7 +360,7 @@ private void process(Plugin plugin) {
360360
361361 // Recollect metadata after modernization
362362 if (!config .isFetchMetadataOnly ()) {
363- plugin .withJDK (JDK .JAVA_21 );
363+ plugin .withJDK (JDK .JAVA_25 );
364364 plugin .clean (mavenInvoker );
365365 collectMetadata (plugin , false );
366366 LOG .debug (
@@ -439,7 +439,7 @@ private void process(Plugin plugin) {
439439 */
440440 private void collectMetadata (Plugin plugin , boolean retryAfterFirstCompile ) {
441441 LOG .trace ("Collecting metadata for plugin {}... Please be patient" , plugin .getName ());
442- plugin .withJDK (JDK .JAVA_21 );
442+ plugin .withJDK (JDK .JAVA_25 );
443443 try {
444444 plugin .collectMetadata (mavenInvoker );
445445 if (plugin .hasErrors ()) {
@@ -458,7 +458,7 @@ private void collectMetadata(Plugin plugin, boolean retryAfterFirstCompile) {
458458 plugin .getName ());
459459 plugin .raiseLastError ();
460460 }
461- plugin .withJDK (JDK .JAVA_21 );
461+ plugin .withJDK (JDK .JAVA_25 );
462462 plugin .collectMetadata (mavenInvoker );
463463 } else {
464464 LOG .info ("Failed to collect metadata for plugin {}. Not retrying." , plugin .getName ());
@@ -562,7 +562,7 @@ private JDK verifyPlugin(Plugin plugin) {
562562 // Determine the JDK
563563 JDK jdk ;
564564 if (metadata .getJdks () == null || metadata .getJdks ().isEmpty ()) {
565- jdk = JDK .JAVA_21 ;
565+ jdk = JDK .JAVA_25 ;
566566 LOG .info (
567567 "No JDKs found in metadata for plugin {}. Using same JDK as rewrite for verification" ,
568568 plugin .getName ());
0 commit comments