From 1b36ba1fa79293705f65a425d61486e1734b955e Mon Sep 17 00:00:00 2001 From: AndreasIgel Date: Sun, 15 Nov 2026 22:12:23 +0100 Subject: [PATCH] ci: install processor's reactor dependencies for fork Sonar classpath dependency:build-classpath resolves the full dependency graph of the processor module, which since the codegen module extraction includes codegen-core, simple-processor, codegen-roaster and codegen-testing SNAPSHOTs. Those artifacts exist only in the checkout, so resolution failed on a clean runner before the classpath could be computed. Installing processor with -am puts all required sibling modules into the local repository and stays correct if processor's module deps change again. Also exclude the io.github.java-helpers.codegen group from the computed library list so internal modules are not reported as external libraries. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- .github/workflows/fork-sonar.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/fork-sonar.yml b/.github/workflows/fork-sonar.yml index c5538183..4cf554b5 100644 --- a/.github/workflows/fork-sonar.yml +++ b/.github/workflows/fork-sonar.yml @@ -125,12 +125,15 @@ jobs: # Resolve them from the base branch's pom (not the fork's) so that the # only pom Maven parses is trusted. A dependency added by the fork PR # is simply unresolved in the analysis; it is never downloaded here. + # `-am` installs processor's in-reactor dependencies (codegen-*) too: + # they are needed to resolve its dependency graph but exist only in + # this checkout, not in any remote repository. run: | - mvn -B -q -DskipTests -Dfmt.skip -pl core install + mvn -B -q -DskipTests -Dfmt.skip -pl processor -am install mvn -B -q -pl processor dependency:build-classpath \ -Dmdep.includeScope=test \ -Dmdep.pathSeparator=, \ - -DexcludeGroupIds=io.github.java-helpers \ + -DexcludeGroupIds=io.github.java-helpers,io.github.java-helpers.codegen \ -Dmdep.outputFile="$RUNNER_TEMP/sonar-libraries.txt" - name: Fetch fork PR source as git data (not executed)