Repository navigation
build: consume test dependencies through codegen-testing - #392
Merged
AndreasIgel merged 1 commit intoNov 10, 2026
Merged
AndreasIgel merged 1 commit into
AndreasIgel merged 1 commit into
Conversation
codegen-testing already brings JUnit and compile-testing, but processor and codegen-roaster declared them a second time and simple-processor did not use codegen-testing at all. The three modules now get their test dependencies transitively from codegen-testing in test scope, so the versions are maintained in one place. codegen-core keeps its own JUnit dependencies: codegen-testing depends on codegen-core, so the other direction would be a cycle.
devin-ai-integration
Bot
deleted the
devin/1794266528-test-deps-transitive
branch
November 22, 2026 14:24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #375.
Summary
#375 asks that the testing project holds the needed test dependencies and that the other projects consume them transitively in test scope.
codegen-testingalready brings JUnit (api, params, engine) and compile-testing, but the consumers did not rely on it:processorcodegen-testing+ own JUnit ×3 + own compile-testingcodegen-testingcodegen-roastercodegen-testing+ own JUnit ×3codegen-testingsimple-processorcodegen-testingcodegen-corecodegen-corekeeps its own JUnit dependencies, becausecodegen-testingdepends oncodegen-coreand Maven does not allow the cycle, not even in test scope.The now unused version properties (
junit-jupiter.version,google-compile-testing.version) are removed from the poms that no longer reference them, so the JUnit and compile-testing versions of these modules are maintained incodegen-testing/pom.xmlonly. Incodegen-testing/pom.xmlthe dangling "Google Compile Testing" comment moves onto its dependency.mvn clean installis green with the same test counts as before (568).Written by Devin