From e7e68c6ac217093fecd490ba05d9313dbc1cda66 Mon Sep 17 00:00:00 2001 From: DemchaAV Date: Sun, 5 Jul 2026 12:00:53 +0100 Subject: [PATCH] build: pull the bundled fonts and emoji onto the test classpath as artifacts The engine's visual / snapshot / emoji suites need the bundled Google fonts and colour-emoji glyphs, which live in the sibling graph-compose-fonts / graph-compose-emoji modules. Until now they were placed on the test classpath by pointing at ${project.basedir}/fonts|emoji/src/main/resources directly. That source-path form is relative to the root module's basedir and will not survive the 2.0 module split, where render backends and templates sit at other depths. Depend on the published graph-compose-fonts:1.0.0 and graph-compose-emoji:1.0.0 at test scope instead. The artifacts package the same src/main/resources layout, so classpath lookups are unchanged; test scope is not transitive, so the engine's own published jar stays fonts-free. The two source-path entries and the now-moot fonts/**/emoji/** tests-jar excludes are removed (nothing is copied into test-classes any more, so the tests-jar naturally carries only the engine's own fixtures for the benchmarks module). Verified: `./mvnw clean verify -pl .` green (clean-built, so fonts/emoji come only from the artifacts); the aggregator reactor builds fonts and emoji before the root and succeeds. graph-compose-fonts/-emoji 1.0.0 are on Central and match the in-repo source, so a fresh CI build resolves them without a bootstrap step. --- pom.xml | 87 +++++++++++++++++++++++++++------------------------------ 1 file changed, 41 insertions(+), 46 deletions(-) diff --git a/pom.xml b/pom.xml index 3650e6d6..b6b2b547 100644 --- a/pom.xml +++ b/pom.xml @@ -62,6 +62,12 @@ 5.23.0 1.18.10 + + 1.0.0 + 1.0.0 + 0.11.0 3.15.0 @@ -212,15 +218,27 @@ + + io.github.demchaav + graph-compose-fonts + ${graphcompose.fonts.version} + test + + + io.github.demchaav + graph-compose-emoji + ${graphcompose.emoji.version} + test + + ch.qos.logback logback-classic @@ -288,33 +306,16 @@ - - - src/test/resources - - ${project.basedir}/fonts/src/main/resources - - - - ${project.basedir}/emoji/src/main/resources + src/test/resources @@ -452,20 +453,14 @@ test-jar - - - - fonts/** - emoji/** - - +