Migrate Designer modules and preview fixtures to Java 25

This commit is contained in:
2026-11-14 13:14:44 +01:00
parent 61a72b5cfb
commit 6227078010
29 changed files with 99 additions and 90 deletions
@@ -41,7 +41,7 @@ public final class BuildRefreshSmoke {
root,
"pom.xml",
"""
<project><modelVersion>4.0.0</modelVersion><groupId>fixture</groupId><artifactId>parent</artifactId><version>1</version><packaging>pom</packaging><modules><module>dep</module><module>app</module><module>unrelated</module></modules><properties><maven.compiler.release>21</maven.compiler.release></properties><profiles><profile><id>designer-preview</id><modules><module>preview</module></modules></profile></profiles><build><pluginManagement><plugins><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-compiler-plugin</artifactId><version>3.14.1</version></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-resources-plugin</artifactId><version>3.3.1</version></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-surefire-plugin</artifactId><version>3.5.4</version></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-jar-plugin</artifactId><version>3.4.2</version></plugin></plugins></pluginManagement></build></project>
<project><modelVersion>4.0.0</modelVersion><groupId>fixture</groupId><artifactId>parent</artifactId><version>1</version><packaging>pom</packaging><modules><module>dep</module><module>app</module><module>unrelated</module></modules><properties><maven.compiler.release>25</maven.compiler.release></properties><profiles><profile><id>designer-preview</id><modules><module>preview</module></modules></profile></profiles><build><pluginManagement><plugins><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-compiler-plugin</artifactId><version>3.14.1</version></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-resources-plugin</artifactId><version>3.3.1</version></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-surefire-plugin</artifactId><version>3.5.4</version></plugin><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-jar-plugin</artifactId><version>3.4.2</version></plugin></plugins></pluginManagement></build></project>
""");
write(root, "dep/pom.xml", child("dep", ""));
write(
@@ -82,7 +82,7 @@ public final class BuildRefreshSmoke {
root.resolve(".mvn/wrapper/maven-wrapper.properties"));
Path config = root.resolve("neitzel-fx-designer.json");
write(root, "neitzel-fx-designer.json", configuration(true));
var runtime = new HostServices.RuntimeInstallation(javaHome, 21);
var runtime = new HostServices.RuntimeInstallation(javaHome, 25);
var mapping =
new ConfiguredRuntimes(
Map.of(
@@ -163,7 +163,7 @@ public final class BuildRefreshSmoke {
System.out.println(
"PASS real Maven Build and Refresh: "
+ checks
+ " checks (Java 21, profile/module preview, test preview, scope, resources,"
+ " checks (Java 25, profile/module preview, test preview, scope, resources,"
+ " isolation, failed build retention)");
} finally {
Path log = repository.resolve("designer-standalone/target/build-refresh-smoke.log");
@@ -26,10 +26,10 @@ public final class WorkflowSmoke {
var runtimes =
new ConfiguredRuntimes(
Map.of(
new ConfiguredRuntimes.Key("java21", HostServices.RuntimeRole.BUILD),
new HostServices.RuntimeInstallation(java, 21),
new ConfiguredRuntimes.Key("java21", HostServices.RuntimeRole.TARGET),
new HostServices.RuntimeInstallation(java, 21)));
new ConfiguredRuntimes.Key("java25", HostServices.RuntimeRole.BUILD),
new HostServices.RuntimeInstallation(java, 25),
new ConfiguredRuntimes.Key("java25", HostServices.RuntimeRole.TARGET),
new HostServices.RuntimeInstallation(java, 25)));
var tools =
List.of(
root.resolve("designer-target-tools/target/designer-target-tools-0.1.0-SNAPSHOT.jar"),