@@ -30,7 +30,7 @@ under the License.
30
30
</parent >
31
31
32
32
<artifactId >maven-invoker-plugin</artifactId >
33
- <version >3.3.1 -SNAPSHOT</version >
33
+ <version >3.4.0 -SNAPSHOT</version >
34
34
<packaging >maven-plugin</packaging >
35
35
36
36
<name >Apache Maven Invoker Plugin</name >
@@ -70,9 +70,8 @@ under the License.
70
70
<beanshell-groupId >org.apache-extras.beanshell</beanshell-groupId >
71
71
<beanshell-artifactId >bsh</beanshell-artifactId >
72
72
<beanshell-version >2.0b6</beanshell-version >
73
- <groovy-groupId >org.codehaus.groovy</groovy-groupId >
74
- <groovy-version >3.0.12</groovy-version >
75
73
<project .build.outputTimestamp>2022-05-25T15:26:55Z</project .build.outputTimestamp>
74
+ <groovy-version >4.0.6</groovy-version >
76
75
</properties >
77
76
78
77
<dependencyManagement >
@@ -98,6 +97,13 @@ under the License.
98
97
<artifactId >commons-io</artifactId >
99
98
<version >2.11.0</version >
100
99
</dependency >
100
+ <dependency >
101
+ <groupId >org.apache.groovy</groupId >
102
+ <artifactId >groovy-bom</artifactId >
103
+ <version >${groovy-version} </version >
104
+ <type >pom</type >
105
+ <scope >import</scope >
106
+ </dependency >
101
107
</dependencies >
102
108
</dependencyManagement >
103
109
@@ -159,14 +165,7 @@ under the License.
159
165
<dependency >
160
166
<groupId >org.apache.maven.shared</groupId >
161
167
<artifactId >maven-script-interpreter</artifactId >
162
- <version >1.3</version >
163
- <exclusions >
164
- <!-- there's already a direct dependency to groovy -->
165
- <exclusion >
166
- <groupId >org.codehaus.groovy</groupId >
167
- <artifactId >groovy</artifactId >
168
- </exclusion >
169
- </exclusions >
168
+ <version >1.4-SNAPSHOT</version >
170
169
</dependency >
171
170
172
171
<dependency >
@@ -189,21 +188,18 @@ under the License.
189
188
</dependency >
190
189
191
190
<dependency >
192
- <groupId >${ groovy-groupId} </groupId >
191
+ <groupId >org.apache. groovy</groupId >
193
192
<artifactId >groovy</artifactId >
194
- <version >${groovy-version} </version >
195
193
<scope >runtime</scope >
196
194
</dependency >
197
195
<dependency >
198
- <groupId >${ groovy-groupId} </groupId >
196
+ <groupId >org.apache. groovy</groupId >
199
197
<artifactId >groovy-json</artifactId >
200
- <version >${groovy-version} </version >
201
198
<scope >runtime</scope >
202
199
</dependency >
203
200
<dependency >
204
- <groupId >${ groovy-groupId} </groupId >
201
+ <groupId >org.apache. groovy</groupId >
205
202
<artifactId >groovy-xml</artifactId >
206
- <version >${groovy-version} </version >
207
203
<scope >runtime</scope >
208
204
</dependency >
209
205
@@ -265,7 +261,6 @@ under the License.
265
261
<version >1.7.36</version >
266
262
<scope >test</scope >
267
263
</dependency >
268
-
269
264
</dependencies >
270
265
271
266
<build >
@@ -332,6 +327,29 @@ under the License.
332
327
<version >1.0.0</version >
333
328
</configuration >
334
329
</plugin >
330
+ <plugin >
331
+ <groupId >org.apache.maven.plugins</groupId >
332
+ <artifactId >maven-enforcer-plugin</artifactId >
333
+ <executions >
334
+ <execution >
335
+ <id >ban-org-codehaus-groovy</id >
336
+ <goals >
337
+ <goal >enforce</goal >
338
+ </goals >
339
+ <phase >validate</phase >
340
+ <configuration >
341
+ <rules >
342
+ <bannedDependencies >
343
+ <excludes >
344
+ <exclude >org.codehaus.groovy:*</exclude >
345
+ </excludes >
346
+ <searchTransitive >true</searchTransitive >
347
+ </bannedDependencies >
348
+ </rules >
349
+ </configuration >
350
+ </execution >
351
+ </executions >
352
+ </plugin >
335
353
</plugins >
336
354
</build >
337
355
0 commit comments