@@ -3,15 +3,14 @@ plugins {
3
3
id ' groovy'
4
4
}
5
5
6
- def spock13 = [' spock13groovy24' , ' spock13groovy25' ]
7
- def spock2x = [
6
+ def versions = [
8
7
' spock20groovy25' , ' spock20groovy30' ,
9
8
' spock21groovy25' , ' spock21groovy30' ,
10
9
' spock22groovy25' , ' spock22groovy30' , ' spock22groovy40' ,
11
10
' spock23groovy25' , ' spock23groovy30' , ' spock23groovy40'
12
11
]
13
12
14
- [ * spock13, * spock2x] . forEach {
13
+ versions . forEach {
15
14
sourceSets. create(it) {
16
15
java. srcDirs + = sourceSets. main. java. srcDirs
17
16
groovy. srcDirs + = sourceSets. test. groovy. srcDirs
@@ -30,26 +29,6 @@ dependencies {
30
29
testImplementation ' org.spockframework:spock-spring'
31
30
testImplementation ' org.springframework.boot:spring-boot-starter-test'
32
31
33
- spock13groovy24Implementation(platform(' org.springframework.boot:spring-boot-dependencies:2.7.3' )) {
34
- exclude group : ' org.codehaus.groovy' , module : ' *'
35
- }
36
- spock13groovy24Implementation platform(' org.codehaus.groovy:groovy-bom:2.4.21' )
37
- spock13groovy24Implementation platform(' org.spockframework:spock-bom:1.3-groovy-2.4' )
38
- spock13groovy24Implementation project(' :spock-outputcapture' )
39
- spock13groovy24Implementation ' org.spockframework:spock-spring'
40
- spock13groovy24Implementation ' org.springframework.boot:spring-boot-starter-test'
41
- spock13groovy24Implementation ' org.objenesis:objenesis:3.3'
42
-
43
- spock13groovy25Implementation(platform(' org.springframework.boot:spring-boot-dependencies:2.7.3' )) {
44
- exclude group : ' org.codehaus.groovy' , module : ' *'
45
- }
46
- spock13groovy25Implementation platform(' org.codehaus.groovy:groovy-bom:2.5.16' )
47
- spock13groovy25Implementation platform(' org.spockframework:spock-bom:1.3-groovy-2.5' )
48
- spock13groovy25Implementation project(' :spock-outputcapture' )
49
- spock13groovy25Implementation ' org.spockframework:spock-spring'
50
- spock13groovy25Implementation ' org.springframework.boot:spring-boot-starter-test'
51
- spock13groovy25Implementation ' org.objenesis:objenesis:2.6'
52
-
53
32
spock20groovy25Implementation(platform(' org.springframework.boot:spring-boot-dependencies:2.7.3' )) {
54
33
exclude group : ' org.codehaus.groovy' , module : ' *'
55
34
}
@@ -129,18 +108,7 @@ dependencies {
129
108
spock23groovy40Implementation ' org.springframework.boot:spring-boot-starter-test'
130
109
}
131
110
132
- spock13. forEach { source ->
133
- tasks. register(" test$source " , Test ) {
134
- group = ' verification'
135
-
136
- testClassesDirs = sourceSets. findByName(source). output. classesDirs
137
- classpath = sourceSets. findByName(source). runtimeClasspath
138
-
139
- useJUnit()
140
- tasks. findByName(' check' ). dependsOn it
141
- }
142
- }
143
- spock2x. forEach { source ->
111
+ versions. forEach { source ->
144
112
tasks. register(" test$source " , Test ) {
145
113
group = ' verification'
146
114
0 commit comments