1+ :spock-release-version: 2.2-M1
2+ :spock-release-date: 2022-02-16
3+ :spock-snapshot-version: 2.2
4+
15https://github.com/spockframework/spock/blob/master/LICENSE[image:https://img.shields.io/badge/License-Apache%202.0-blue.svg[License]]
26https://search.maven.org/search?q=g:org.spockframework[image:https://img.shields.io/maven-central/v/org.spockframework/spock-core.svg?label=Maven%20Central[Maven
37Central]]
@@ -22,13 +26,13 @@ https://meetspock.appspot.com/[https://meetspock.appspot.com/].
2226
2327=== Latest Versions
2428
25- * The latest 2.x release version is *2.1 * (2.1 -groovy-2.5,
26- 2.1- groovy-3.0), released on 2022-02-15 .
27- * The current development version is *2.2 -SNAPSHOT*
28- (2.2- groovy-2.5-SNAPSHOT, 2.2- groovy-3.0-SNAPSHOT).
29+ * The latest 2.x release version is *{spock-release-version} * ({spock-release-version} -groovy-2.5,
30+ {spock-release-version}- groovy-3.0, {spock-release-version}-groovy-4.0 ), released on {spock-release-date} .
31+ * The current development version is *{spock-snapshot-version} -SNAPSHOT*
32+ ({spock-snapshot-version}- groovy-2.5-SNAPSHOT, {spock-snapshot-version}- groovy-3.0-SNAPSHOT, , {spock-snapshot-version}-groovy-4 .0-SNAPSHOT).
2933
3034*NOTE:* Spock 2.x is based on the JUnit 5 Platform and require Java
31- 8+/groovy-2.5+ (Groovy 3.0 is recommended, especially in projects using
35+ 8+/groovy-2.5+ (Groovy 3.0 or 4.0 is recommended, especially in projects using
3236Java 12+).
3337
3438Releases are available from
@@ -47,16 +51,16 @@ instructions):
4751. Use `org.spockframework.spock` as `groupId` and the normal
4852`artifact-id`
4953
50- [source,groovy]
54+ [source,groovy,subs="attributes" ]
5155----
5256repositories {
5357 // ...
5458 maven { url 'https://jitpack.io' }
5559}
5660
5761dependencies {
58- testImplementation 'org.spockframework.spock:spock-core:spock-2.1 '
59- testImplementation 'org.spockframework.spock:spock-spring:spock-2.1 '
62+ testImplementation 'org.spockframework.spock:spock-core:spock-{spock-release-version} '
63+ testImplementation 'org.spockframework.spock:spock-spring:spock-{spock-release-version} '
6064}
6165----
6266
@@ -84,19 +88,25 @@ https://tapestry.apache.org/[Tapestry 5] IoC container.
8488
8589Spock is supported for Java version 8+.
8690
87- Spock is supported for Groovy versions 2.5 and 3 .0.
91+ Spock is supported for Groovy versions 2.5, 3.0, and 4 .0.
8892
8993The tests are testing Spock with the specific versions (variants) of
9094Groovy and Java. Default Groovy version is 2.5.
9195
92- The Groovy 2.5 and 3.0 variant should pass on all supported JDK
93- versions:
96+ The Groovy 3.0 and 4.0 variant should pass on all supported JDK versions,
97+ Groovy 2.5 does not work with Java 17+:
98+
99+ ....
100+ ./gradlew build
101+ ....
102+
103+ To build a specific variant of Spock, use the variant name as a parameter
94104
95105....
96- ./gradlew clean build
106+ ./gradlew build -Dvariant=4.0
97107....
98108
99- (Windows: `gradlew clean build`). All build dependencies, including the
109+ (Windows: `gradlew build`). All build dependencies, including the
100110https://www.gradle.org[build tool] itself, will be downloaded
101111automatically (unless already present).
102112
0 commit comments