Skip to content

Commit c12fe63

Browse files
Remove dependencies from root pom
Dependencies should be declared where is needed
1 parent 85aa5c4 commit c12fe63

File tree

15 files changed

+134
-14
lines changed

15 files changed

+134
-14
lines changed

maven-failsafe-plugin/pom.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,17 @@
107107
<artifactId>org.eclipse.sisu.plexus</artifactId>
108108
<scope>provided</scope>
109109
</dependency>
110+
111+
<dependency>
112+
<groupId>junit</groupId>
113+
<artifactId>junit</artifactId>
114+
<scope>test</scope>
115+
</dependency>
116+
<dependency>
117+
<groupId>org.assertj</groupId>
118+
<artifactId>assertj-core</artifactId>
119+
<scope>test</scope>
120+
</dependency>
110121
<dependency>
111122
<groupId>org.mockito</groupId>
112123
<artifactId>mockito-core</artifactId>

maven-surefire-common/pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,12 @@
132132
<artifactId>jsr305</artifactId>
133133
<scope>provided</scope>
134134
</dependency>
135+
136+
<dependency>
137+
<groupId>org.assertj</groupId>
138+
<artifactId>assertj-core</artifactId>
139+
<scope>test</scope>
140+
</dependency>
135141
<dependency>
136142
<groupId>org.mockito</groupId>
137143
<artifactId>mockito-core</artifactId>

maven-surefire-plugin/pom.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,16 @@
7373
<artifactId>maven-plugin-annotations</artifactId>
7474
<scope>provided</scope>
7575
</dependency>
76+
<dependency>
77+
<groupId>junit</groupId>
78+
<artifactId>junit</artifactId>
79+
<scope>test</scope>
80+
</dependency>
81+
<dependency>
82+
<groupId>org.assertj</groupId>
83+
<artifactId>assertj-core</artifactId>
84+
<scope>test</scope>
85+
</dependency>
7686
</dependencies>
7787

7888
<build>

maven-surefire-report-plugin/pom.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,16 @@
135135
<artifactId>jansi</artifactId>
136136
<scope>provided</scope>
137137
</dependency>
138+
<dependency>
139+
<groupId>junit</groupId>
140+
<artifactId>junit</artifactId>
141+
<scope>test</scope>
142+
</dependency>
143+
<dependency>
144+
<groupId>org.assertj</groupId>
145+
<artifactId>assertj-core</artifactId>
146+
<scope>test</scope>
147+
</dependency>
138148
<dependency>
139149
<groupId>commons-io</groupId>
140150
<artifactId>commons-io</artifactId>

pom.xml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -298,18 +298,6 @@
298298
</dependency>
299299
</dependencies>
300300
</dependencyManagement>
301-
<dependencies>
302-
<dependency>
303-
<groupId>junit</groupId>
304-
<artifactId>junit</artifactId>
305-
<scope>test</scope>
306-
</dependency>
307-
<dependency>
308-
<groupId>org.assertj</groupId>
309-
<artifactId>assertj-core</artifactId>
310-
<scope>test</scope>
311-
</dependency>
312-
</dependencies>
313301

314302
<build>
315303
<pluginManagement>

surefire-api/pom.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,17 @@
4646
<artifactId>jsr305</artifactId>
4747
<scope>provided</scope>
4848
</dependency>
49+
50+
<dependency>
51+
<groupId>junit</groupId>
52+
<artifactId>junit</artifactId>
53+
<scope>test</scope>
54+
</dependency>
55+
<dependency>
56+
<groupId>org.assertj</groupId>
57+
<artifactId>assertj-core</artifactId>
58+
<scope>test</scope>
59+
</dependency>
4960
<dependency>
5061
<groupId>org.mockito</groupId>
5162
<artifactId>mockito-core</artifactId>

surefire-booter/pom.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,16 @@
5656
<artifactId>jsr305</artifactId>
5757
<scope>provided</scope>
5858
</dependency>
59+
<dependency>
60+
<groupId>junit</groupId>
61+
<artifactId>junit</artifactId>
62+
<scope>test</scope>
63+
</dependency>
64+
<dependency>
65+
<groupId>org.assertj</groupId>
66+
<artifactId>assertj-core</artifactId>
67+
<scope>test</scope>
68+
</dependency>
5969
<dependency>
6070
<groupId>org.mockito</groupId>
6171
<artifactId>mockito-core</artifactId>

surefire-extensions-api/pom.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,16 @@
5151
<groupId>org.apache.maven.surefire</groupId>
5252
<artifactId>surefire-shared-utils</artifactId>
5353
</dependency>
54+
<dependency>
55+
<groupId>junit</groupId>
56+
<artifactId>junit</artifactId>
57+
<scope>test</scope>
58+
</dependency>
59+
<dependency>
60+
<groupId>org.assertj</groupId>
61+
<artifactId>assertj-core</artifactId>
62+
<scope>test</scope>
63+
</dependency>
5464
<dependency>
5565
<groupId>org.mockito</groupId>
5666
<artifactId>mockito-core</artifactId>

surefire-grouper/pom.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@
3131
<name>Maven Surefire Test-Grouping Support</name>
3232
<description>Maven Surefire Test-Grouping Support</description>
3333

34+
<dependencies>
35+
<dependency>
36+
<groupId>junit</groupId>
37+
<artifactId>junit</artifactId>
38+
<scope>test</scope>
39+
</dependency>
40+
</dependencies>
41+
3442
<build>
3543
<plugins>
3644
<plugin>

surefire-its/pom.xml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@
4141
<dependency>
4242
<groupId>org.apache.maven.surefire</groupId>
4343
<artifactId>surefire-report-parser</artifactId>
44-
<version>3.5.0</version>
44+
<version>${project.version}</version>
4545
<scope>test</scope>
4646
</dependency>
4747
<dependency>
4848
<groupId>org.apache.maven.surefire</groupId>
4949
<artifactId>surefire-logger-api</artifactId>
50-
<version>3.5.0</version>
50+
<version>${project.version}</version>
5151
<scope>test</scope>
5252
</dependency>
5353
<dependency>
@@ -95,6 +95,16 @@
9595
<artifactId>plexus-utils</artifactId>
9696
<scope>test</scope>
9797
</dependency>
98+
<dependency>
99+
<groupId>junit</groupId>
100+
<artifactId>junit</artifactId>
101+
<scope>test</scope>
102+
</dependency>
103+
<dependency>
104+
<groupId>org.assertj</groupId>
105+
<artifactId>assertj-core</artifactId>
106+
<scope>test</scope>
107+
</dependency>
98108
</dependencies>
99109

100110
<build>

surefire-logger-api/pom.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,16 @@
4848
</properties>
4949

5050
<dependencies>
51+
<dependency>
52+
<groupId>junit</groupId>
53+
<artifactId>junit</artifactId>
54+
<scope>test</scope>
55+
</dependency>
56+
<dependency>
57+
<groupId>org.assertj</groupId>
58+
<artifactId>assertj-core</artifactId>
59+
<scope>test</scope>
60+
</dependency>
5161
<dependency>
5262
<groupId>org.mockito</groupId>
5363
<artifactId>mockito-core</artifactId>

surefire-providers/common-java5/pom.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,17 @@
3636
<groupId>org.apache.maven.surefire</groupId>
3737
<artifactId>surefire-shared-utils</artifactId>
3838
</dependency>
39+
40+
<dependency>
41+
<groupId>junit</groupId>
42+
<artifactId>junit</artifactId>
43+
<scope>test</scope>
44+
</dependency>
45+
<dependency>
46+
<groupId>org.assertj</groupId>
47+
<artifactId>assertj-core</artifactId>
48+
<scope>test</scope>
49+
</dependency>
3950
</dependencies>
4051

4152
<build>

surefire-providers/surefire-junit-platform/pom.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,15 @@
109109
<artifactId>junit-jupiter-params</artifactId>
110110
<scope>test</scope>
111111
</dependency>
112+
<dependency>
113+
<groupId>junit</groupId>
114+
<artifactId>junit</artifactId>
115+
<scope>test</scope>
116+
</dependency>
117+
<dependency>
118+
<groupId>org.assertj</groupId>
119+
<artifactId>assertj-core</artifactId>
120+
</dependency>
112121
<dependency>
113122
<groupId>org.mockito</groupId>
114123
<artifactId>mockito-core</artifactId>

surefire-providers/surefire-testng/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@
3838
<version>3.8.2</version>
3939
<scope>provided</scope>
4040
</dependency>
41+
<dependency>
42+
<groupId>org.assertj</groupId>
43+
<artifactId>assertj-core</artifactId>
44+
<scope>test</scope>
45+
</dependency>
4146
<dependency>
4247
<groupId>org.apache.maven.surefire</groupId>
4348
<artifactId>surefire-shared-utils</artifactId>

surefire-report-parser/pom.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,17 @@
4141
<groupId>org.apache.maven.shared</groupId>
4242
<artifactId>maven-shared-utils</artifactId>
4343
</dependency>
44+
45+
<dependency>
46+
<groupId>junit</groupId>
47+
<artifactId>junit</artifactId>
48+
<scope>test</scope>
49+
</dependency>
50+
<dependency>
51+
<groupId>org.assertj</groupId>
52+
<artifactId>assertj-core</artifactId>
53+
<scope>test</scope>
54+
</dependency>
4455
</dependencies>
4556
<build>
4657
<plugins>

0 commit comments

Comments
 (0)