Migrate Designer modules and preview fixtures to Java 25
This commit is contained in:
@@ -26,7 +26,7 @@ run([wrapper, "-B", "-ntp", "clean", "install"])
|
||||
run([wrapper, "-B", "-ntp", "-pl", "designer-target-tools", "org.apache.maven.plugins:maven-dependency-plugin:3.6.1:build-classpath", "-DincludeScope=runtime", "-Dmdep.outputFile=target/runtime-classpath.txt"])
|
||||
for module in ("contracts", "model-processor", "preview-api", "core", "kit-ui", "standalone", "target-tools", "maven-plugin"):
|
||||
name = "designer-" + module
|
||||
expected = 69 if module in ("kit-ui", "standalone") else 65
|
||||
expected = 69
|
||||
with zipfile.ZipFile(ROOT / name / "target" / (name + "-0.1.0-SNAPSHOT.jar")) as jar:
|
||||
classes = [n for n in jar.namelist() if n.endswith(".class")]
|
||||
assert classes, name
|
||||
@@ -34,8 +34,8 @@ for module in ("contracts", "model-processor", "preview-api", "core", "kit-ui",
|
||||
classpath = str(ROOT / "designer-target-tools/target/classes") + os.pathsep + (ROOT / "designer-target-tools/target/runtime-classpath.txt").read_text().strip()
|
||||
target_java = Path(args.target_java_home) / "bin/java"
|
||||
version = subprocess.run([str(target_java), "-version"], capture_output=True, text=True, check=True)
|
||||
if not re.search(r'version "21[.\"]', version.stderr):
|
||||
sys.exit("Target linkage gate requires Java 21")
|
||||
if not re.search(r'version "25[.\"]', version.stderr):
|
||||
sys.exit("Target linkage gate requires Java 25")
|
||||
run([target_java, "-cp", classpath, "de.neitzel.fxdesigner.target.TargetToolInfo"])
|
||||
run([sys.executable, ROOT / "scripts/check-preview-fixtures.py", "--target-java-home", args.target_java_home])
|
||||
run([wrapper, "-B", "-ntp", "-pl", "designer-standalone", "org.apache.maven.plugins:maven-dependency-plugin:3.6.1:build-classpath", "-DincludeScope=test", "-Dmdep.outputFile=target/smoke-classpath.txt"])
|
||||
|
||||
Reference in New Issue
Block a user