Skip to content

Commit aef57f4

Browse files
committed
fix: Configure dependency scope for junit dependencies at parent
Signed-off-by: Marc Nuri <[email protected]>
1 parent 22f0dcb commit aef57f4

File tree

16 files changed

+53
-78
lines changed

16 files changed

+53
-78
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* Fix #4256: crd-generator-apt pom.xml includes transitive dependencies
1010
* Fix #4294: crd-generator respects JsonIgnore annotations on enum properties
1111
* Fix #4320: corrected leader transitions field on leader election leases
12+
* Fix #4360: JUnit dependencies aren't leaked in child modules
1213

1314

1415
#### Improvements

extensions/camel-k/mock/pom.xml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,8 @@
4141

4242
<dependency>
4343
<groupId>org.junit.jupiter</groupId>
44-
<artifactId>junit-jupiter-engine</artifactId>
45-
<scope>test</scope>
46-
</dependency>
47-
48-
<dependency>
49-
<groupId>org.junit.jupiter</groupId>
50-
<artifactId>junit-jupiter-migrationsupport</artifactId>
51-
<scope>test</scope>
44+
<artifactId>junit-jupiter-api</artifactId>
45+
<scope>provided</scope>
5246
</dependency>
5347
</dependencies>
5448

extensions/certmanager/mock/pom.xml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,8 @@
4242

4343
<dependency>
4444
<groupId>org.junit.jupiter</groupId>
45-
<artifactId>junit-jupiter-engine</artifactId>
46-
<scope>test</scope>
47-
</dependency>
48-
<dependency>
49-
<groupId>org.junit.jupiter</groupId>
50-
<artifactId>junit-jupiter-migrationsupport</artifactId>
51-
<scope>test</scope>
45+
<artifactId>junit-jupiter-api</artifactId>
46+
<scope>provided</scope>
5247
</dependency>
5348
</dependencies>
5449

extensions/chaosmesh/mock/pom.xml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,8 @@
4242

4343
<dependency>
4444
<groupId>org.junit.jupiter</groupId>
45-
<artifactId>junit-jupiter-engine</artifactId>
46-
<scope>test</scope>
47-
</dependency>
48-
<dependency>
49-
<groupId>org.junit.jupiter</groupId>
50-
<artifactId>junit-jupiter-migrationsupport</artifactId>
51-
<scope>test</scope>
45+
<artifactId>junit-jupiter-api</artifactId>
46+
<scope>provided</scope>
5247
</dependency>
5348
</dependencies>
5449

extensions/istio/mock/pom.xml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,8 @@
4040

4141
<dependency>
4242
<groupId>org.junit.jupiter</groupId>
43-
<artifactId>junit-jupiter-engine</artifactId>
44-
</dependency>
45-
46-
<dependency>
47-
<groupId>org.junit.jupiter</groupId>
48-
<artifactId>junit-jupiter-migrationsupport</artifactId>
43+
<artifactId>junit-jupiter-api</artifactId>
44+
<scope>provided</scope>
4945
</dependency>
5046
</dependencies>
5147

extensions/knative/mock/pom.xml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,8 @@
4040

4141
<dependency>
4242
<groupId>org.junit.jupiter</groupId>
43-
<artifactId>junit-jupiter-engine</artifactId>
44-
</dependency>
45-
46-
<dependency>
47-
<groupId>org.junit.jupiter</groupId>
48-
<artifactId>junit-jupiter-migrationsupport</artifactId>
43+
<artifactId>junit-jupiter-api</artifactId>
44+
<scope>provided</scope>
4945
</dependency>
5046
</dependencies>
5147

extensions/open-cluster-management/mock/pom.xml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,8 @@
4242

4343
<dependency>
4444
<groupId>org.junit.jupiter</groupId>
45-
<artifactId>junit-jupiter-engine</artifactId>
46-
<scope>test</scope>
47-
</dependency>
48-
<dependency>
49-
<groupId>org.junit.jupiter</groupId>
50-
<artifactId>junit-jupiter-migrationsupport</artifactId>
51-
<scope>test</scope>
45+
<artifactId>junit-jupiter-api</artifactId>
46+
<scope>provided</scope>
5247
</dependency>
5348
</dependencies>
5449

extensions/service-catalog/mock/pom.xml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,8 @@
4141

4242
<dependency>
4343
<groupId>org.junit.jupiter</groupId>
44-
<artifactId>junit-jupiter-engine</artifactId>
45-
<scope>test</scope>
46-
</dependency>
47-
<dependency>
48-
<groupId>org.junit.jupiter</groupId>
49-
<artifactId>junit-jupiter-migrationsupport</artifactId>
50-
<scope>test</scope>
44+
<artifactId>junit-jupiter-api</artifactId>
45+
<scope>provided</scope>
5146
</dependency>
5247
</dependencies>
5348

extensions/tekton/mock/pom.xml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,8 @@
4141

4242
<dependency>
4343
<groupId>org.junit.jupiter</groupId>
44-
<artifactId>junit-jupiter-engine</artifactId>
45-
<scope>test</scope>
46-
</dependency>
47-
48-
<dependency>
49-
<groupId>org.junit.jupiter</groupId>
50-
<artifactId>junit-jupiter-migrationsupport</artifactId>
51-
<scope>test</scope>
44+
<artifactId>junit-jupiter-api</artifactId>
45+
<scope>provided</scope>
5246
</dependency>
5347
</dependencies>
5448

extensions/verticalpodautoscaler/mock/pom.xml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,8 @@
4242

4343
<dependency>
4444
<groupId>org.junit.jupiter</groupId>
45-
<artifactId>junit-jupiter-engine</artifactId>
46-
<scope>test</scope>
47-
</dependency>
48-
<dependency>
49-
<groupId>org.junit.jupiter</groupId>
50-
<artifactId>junit-jupiter-migrationsupport</artifactId>
51-
<scope>test</scope>
45+
<artifactId>junit-jupiter-api</artifactId>
46+
<scope>provided</scope>
5247
</dependency>
5348
</dependencies>
5449

0 commit comments

Comments
 (0)