Adopt compile-time Lombok for shared and host boilerplate

This commit is contained in:
2026-11-14 07:34:13 +01:00
parent 83b9e4013d
commit 61a72b5cfb
18 changed files with 116 additions and 50 deletions
+1
View File
@@ -45,6 +45,7 @@ run([ROOT / "designer-intellij" / ("gradlew.bat" if os.name == "nt" else "gradle
run([sys.executable, ROOT / "scripts/check-connected-workflow.py", "--idea-home", args.idea_home, "--target-java-home", args.target_java_home])
with zipfile.ZipFile(next((ROOT / "designer-intellij/build/distributions").glob("*.zip"))) as plugin:
names = plugin.namelist()
assert not any("lombok" in n.lower() for n in names), "Compile-time Lombok bundled in IDE plugin"
assert any("javafx-graphics-26-mac" in n for n in names), "Missing host JavaFX implementation"
assert not any("designer-target-tools" in n or "designer-preview-api" in n or "designer-model-processor" in n or "designer-maven-plugin" in n or "/fx-1.0" in n for n in names), "Target dependency in IDE host"
for document in [ROOT / "README.md", ROOT / "AGENTS.md", ROOT / "THIRD-PARTY-NOTICES.md", *sorted((ROOT / "docs").rglob("*.md"))]:
+1 -1
View File
@@ -25,7 +25,7 @@ with tempfile.TemporaryDirectory(prefix='designer-package-') as tmp:
deps=[Path(s) for s in (ROOT/'designer-standalone/target/package-classpath.txt').read_text().strip().split(os.pathsep)]
paths += sorted(deps,key=lambda f:(0 if f.name.startswith('designer-kit-ui-') else 1,f.name))
for file in paths:
if file.name.endswith('-tests.jar') or any(s in file.name for s in ('junit','intellij','target-tools','preview-api')):
if file.name.endswith('-tests.jar') or any(s in file.name for s in ('junit','intellij','target-tools','preview-api','lombok')):
raise RuntimeError('Unexpected host dependency: '+str(file))
if (stage/file.name).exists(): raise RuntimeError('Duplicate artifact name: '+file.name)
shutil.copy2(file,stage/file.name)