From a3fdf4c17d3d7b0bb591464e9ba9f429bca7d8cb Mon Sep 17 00:00:00 2001
From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Date: Mon, 9 Nov 2026 23:24:07 +0000
Subject: [PATCH] build: consume test dependencies through codegen-testing
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.
---
codegen-core/pom.xml | 1 -
codegen-roaster/pom.xml | 20 --------------------
codegen-testing/pom.xml | 3 +--
processor/pom.xml | 30 ------------------------------
simple-processor/pom.xml | 20 +++-----------------
5 files changed, 4 insertions(+), 70 deletions(-)
diff --git a/codegen-core/pom.xml b/codegen-core/pom.xml
index 479f5984..ff366a8f 100644
--- a/codegen-core/pom.xml
+++ b/codegen-core/pom.xml
@@ -61,7 +61,6 @@
3.21.0
4.6.0
6.1.3
- 0.24.0
2.22.3
1.6.3
diff --git a/codegen-roaster/pom.xml b/codegen-roaster/pom.xml
index 36372890..8d876dba 100644
--- a/codegen-roaster/pom.xml
+++ b/codegen-roaster/pom.xml
@@ -60,8 +60,6 @@
2.31.1.Final
3.21.0
4.6.0
- 6.1.3
- 0.24.0
2.22.3
1.6.3
@@ -128,24 +126,6 @@
${project.version}
test
-
- org.junit.jupiter
- junit-jupiter-api
- ${junit-jupiter.version}
- test
-
-
- org.junit.jupiter
- junit-jupiter-params
- ${junit-jupiter.version}
- test
-
-
- org.junit.jupiter
- junit-jupiter-engine
- ${junit-jupiter.version}
- test
-
diff --git a/codegen-testing/pom.xml b/codegen-testing/pom.xml
index e0cf539f..3258cd6c 100644
--- a/codegen-testing/pom.xml
+++ b/codegen-testing/pom.xml
@@ -96,6 +96,7 @@
codegen-core
${project.version}
+
com.google.testing.compile
compile-testing
@@ -133,8 +134,6 @@
${junit-jupiter.version}
compile
-
-
diff --git a/processor/pom.xml b/processor/pom.xml
index 684d5186..78733ea7 100644
--- a/processor/pom.xml
+++ b/processor/pom.xml
@@ -60,8 +60,6 @@
2.31.1.Final
3.21.0
4.6.0
- 6.1.3
- 0.24.0
2.22.4
1.6.3
@@ -158,34 +156,6 @@
true
-
-
- org.junit.jupiter
- junit-jupiter-api
- ${junit-jupiter.version}
- test
-
-
- org.junit.jupiter
- junit-jupiter-params
- ${junit-jupiter.version}
- test
-
-
- org.junit.jupiter
- junit-jupiter-engine
- ${junit-jupiter.version}
- test
-
-
-
-
- com.google.testing.compile
- compile-testing
- ${google-compile-testing.version}
- test
-
-
org.mapstruct
diff --git a/simple-processor/pom.xml b/simple-processor/pom.xml
index dd0f29da..d9893b62 100644
--- a/simple-processor/pom.xml
+++ b/simple-processor/pom.xml
@@ -60,8 +60,6 @@
2.31.1.Final
3.21.0
4.6.0
- 6.1.3
- 0.24.0
2.22.3
1.6.3
@@ -118,21 +116,9 @@
- org.junit.jupiter
- junit-jupiter-api
- ${junit-jupiter.version}
- test
-
-
- org.junit.jupiter
- junit-jupiter-params
- ${junit-jupiter.version}
- test
-
-
- org.junit.jupiter
- junit-jupiter-engine
- ${junit-jupiter.version}
+ io.github.java-helpers.codegen
+ codegen-testing
+ ${project.version}
test