From 1b95916893c49f17c34d9cfa4de73bdce51ec861 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Dinis=20Ferreira?= Date: Sat, 11 Jul 2026 18:48:22 +0200 Subject: [PATCH] perf(target): add slim slicer-mode ddk-ci.target as opt-in alternative The default ddk.target uses includeMode=planner, which provisions a complete install closure: PDE eagerly downloads 325MB/861 jars per workspace, 48% of which are source bundles that includeSource=false cannot remove (PDE's planner path plans in sources unconditionally). ddk-ci.target lists the actually-required units in slicer mode: ~205MB/440 jars, source bundles down from 411 to 30. Every unit was added in response to a concrete resolution error from the full reactor build and test suite (mvn clean verify green against -Dtarget.platform=ddk-ci). com.avaloq.tools.ddk.xtext.test's surefire runtime required the whole org.eclipse.xtext.sdk feature; replaced with the runtime/ui/xbase features plus the bundles it actually uses at test runtime, including org.eclipse.xtext.xtext.ui whose absence breaks .xtext grammar resource loading (registered EMF resource factory). Resolvable under both targets; full verify green under both. Opt in via -Dtarget.platform=ddk-ci. The default target is unchanged; switching the default is a separate decision. Assisted by Claude. --- com.avaloq.tools.ddk.xtext.test/pom.xml | 27 ++- ddk-target/ddk-ci.target | 212 ++++++++++++++++++++++++ ddk-target/pom.xml | 5 + 3 files changed, 243 insertions(+), 1 deletion(-) create mode 100644 ddk-target/ddk-ci.target diff --git a/com.avaloq.tools.ddk.xtext.test/pom.xml b/com.avaloq.tools.ddk.xtext.test/pom.xml index 31b650d989..5efafa8378 100644 --- a/com.avaloq.tools.ddk.xtext.test/pom.xml +++ b/com.avaloq.tools.ddk.xtext.test/pom.xml @@ -47,7 +47,32 @@ eclipse-feature - org.eclipse.xtext.sdk + org.eclipse.xtext.runtime + 0.0.0 + + + eclipse-feature + org.eclipse.xtext.ui + 0.0.0 + + + eclipse-feature + org.eclipse.xtext.xbase + 0.0.0 + + + eclipse-plugin + org.eclipse.xtext.xtext.ui + 0.0.0 + + + eclipse-plugin + org.eclipse.xtext.testing + 0.0.0 + + + eclipse-plugin + org.eclipse.xtext.ui.testing 0.0.0 diff --git a/ddk-target/ddk-ci.target b/ddk-target/ddk-ci.target new file mode 100644 index 0000000000..cd6919e1f2 --- /dev/null +++ b/ddk-target/ddk-ci.target @@ -0,0 +1,212 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ddk-target/pom.xml b/ddk-target/pom.xml index 63e63dd19d..974ca12829 100644 --- a/ddk-target/pom.xml +++ b/ddk-target/pom.xml @@ -29,6 +29,11 @@ target ddk + + ddk-ci.target + target + ddk-ci +