Skip to content

Commit 5917c47

Browse files
committed
Bump dependency on groovy to compatible version
1 parent dd41ea8 commit 5917c47

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

e2e/pom.xml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
<properties>
1818
<spock.version>2.3-groovy-4.0</spock.version>
19+
<groovy.version>4.0.15</groovy.version>
1920
</properties>
2021
<dependencies>
2122
<dependency>
@@ -34,7 +35,22 @@
3435
<artifactId>spock-core</artifactId>
3536
<version>${spock.version}</version>
3637
<scope>test</scope>
38+
<exclusions>
39+
<!-- spock brings apache groovy 4.0.4; but a minimum of 4.0.11 is required to be compatible with JDK 21 -->
40+
<exclusion>
41+
<groupId>org.apache.groovy</groupId>
42+
<artifactId>groovy</artifactId>
43+
</exclusion>
44+
</exclusions>
3745
</dependency>
46+
47+
<dependency>
48+
<groupId>org.apache.groovy</groupId>
49+
<artifactId>groovy</artifactId>
50+
<version>${groovy.version}</version>
51+
<scope>test</scope>
52+
</dependency>
53+
3854
<dependency>
3955
<groupId>junit</groupId>
4056
<artifactId>junit</artifactId>
@@ -93,6 +109,7 @@
93109
</systemPropertyVariables>
94110
</configuration>
95111
</plugin>
112+
96113
<plugin>
97114
<groupId>org.codehaus.gmavenplus</groupId>
98115
<artifactId>gmavenplus-plugin</artifactId>
@@ -105,9 +122,10 @@
105122
</executions>
106123
<dependencies>
107124
<dependency>
108-
<groupId>org.codehaus.groovy</groupId>
109-
<artifactId>groovy-all</artifactId>
110-
<version>2.4.21</version>
125+
<groupId>org.apache.groovy</groupId>
126+
<artifactId>groovy</artifactId>
127+
<version>${groovy.version}</version>
128+
<scope>runtime</scope>
111129
</dependency>
112130
</dependencies>
113131
</plugin>

0 commit comments

Comments
 (0)