Skip to content

Commit

Permalink
fix: Configure dependency scope for junit dependencies at parent
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Nuri <marc@marcnuri.com>
  • Loading branch information
manusa committed Aug 30, 2022
1 parent 22f0dcb commit aef57f4
Show file tree
Hide file tree
Showing 16 changed files with 53 additions and 78 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* Fix #4256: crd-generator-apt pom.xml includes transitive dependencies
* Fix #4294: crd-generator respects JsonIgnore annotations on enum properties
* Fix #4320: corrected leader transitions field on leader election leases
* Fix #4360: JUnit dependencies aren't leaked in child modules


#### Improvements
Expand Down
10 changes: 2 additions & 8 deletions extensions/camel-k/mock/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,8 @@

<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-migrationsupport</artifactId>
<scope>test</scope>
<artifactId>junit-jupiter-api</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>

Expand Down
9 changes: 2 additions & 7 deletions extensions/certmanager/mock/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,8 @@

<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-migrationsupport</artifactId>
<scope>test</scope>
<artifactId>junit-jupiter-api</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>

Expand Down
9 changes: 2 additions & 7 deletions extensions/chaosmesh/mock/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,8 @@

<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-migrationsupport</artifactId>
<scope>test</scope>
<artifactId>junit-jupiter-api</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>

Expand Down
8 changes: 2 additions & 6 deletions extensions/istio/mock/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,8 @@

<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
</dependency>

<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-migrationsupport</artifactId>
<artifactId>junit-jupiter-api</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>

Expand Down
8 changes: 2 additions & 6 deletions extensions/knative/mock/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,8 @@

<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
</dependency>

<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-migrationsupport</artifactId>
<artifactId>junit-jupiter-api</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>

Expand Down
9 changes: 2 additions & 7 deletions extensions/open-cluster-management/mock/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,8 @@

<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-migrationsupport</artifactId>
<scope>test</scope>
<artifactId>junit-jupiter-api</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>

Expand Down
9 changes: 2 additions & 7 deletions extensions/service-catalog/mock/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,8 @@

<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-migrationsupport</artifactId>
<scope>test</scope>
<artifactId>junit-jupiter-api</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>

Expand Down
10 changes: 2 additions & 8 deletions extensions/tekton/mock/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,8 @@

<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-migrationsupport</artifactId>
<scope>test</scope>
<artifactId>junit-jupiter-api</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>

Expand Down
9 changes: 2 additions & 7 deletions extensions/verticalpodautoscaler/mock/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,8 @@

<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-migrationsupport</artifactId>
<scope>test</scope>
<artifactId>junit-jupiter-api</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>

Expand Down
4 changes: 2 additions & 2 deletions extensions/volcano/mock/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<scope>test</scope>
<artifactId>junit-jupiter-api</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>

Expand Down
9 changes: 2 additions & 7 deletions extensions/volumesnapshot/mock/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,8 @@

<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-migrationsupport</artifactId>
<scope>test</scope>
<artifactId>junit-jupiter-api</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>

Expand Down
3 changes: 2 additions & 1 deletion junit/kubernetes-junit-jupiter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<artifactId>junit-jupiter-api</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
1 change: 1 addition & 0 deletions junit/kubernetes-server-mock/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
Expand Down
6 changes: 6 additions & 0 deletions junit/openshift-server-mock/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,11 @@
<groupId>io.fabric8</groupId>
<artifactId>openshift-client</artifactId>
</dependency>

<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
26 changes: 21 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -822,13 +822,29 @@
<scope>test</scope>
</dependency>

<!-- JUnit dependencies, imported as a BOM -->
<dependency>
<groupId>org.junit</groupId>
<artifactId>junit-bom</artifactId>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>${junit.version}</version>
<scope>import</scope>
<type>pom</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-migrationsupport</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-params</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>

<dependency>
Expand Down

0 comments on commit aef57f4

Please sign in to comment.