Skip to content

Commit 849dd7c

Browse files
committed
Release Spock 2.2-M1
1 parent 2dd2a02 commit 849dd7c

File tree

2 files changed

+25
-15
lines changed

2 files changed

+25
-15
lines changed

README.adoc

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
:spock-release-version: 2.2-M1
2+
:spock-release-date: 2022-02-16
3+
:spock-snapshot-version: 2.2
4+
15
https://github.com/spockframework/spock/blob/master/LICENSE[image:https://img.shields.io/badge/License-Apache%202.0-blue.svg[License]]
26
https://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
37
Central]]
@@ -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
3236
Java 12+).
3337

3438
Releases 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
----
5256
repositories {
5357
// ...
5458
maven { url 'https://jitpack.io' }
5559
}
5660
5761
dependencies {
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

8589
Spock 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

8993
The tests are testing Spock with the specific versions (variants) of
9094
Groovy 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
100110
https://www.gradle.org[build tool] itself, will be downloaded
101111
automatically (unless already present).
102112

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ description = "Spock Framework"
1313

1414
ext {
1515
baseVersion = "2.2"
16-
snapshotVersion = true
17-
milestone = 0
16+
snapshotVersion = false
17+
milestone = 1
1818
variants = [2.5, 3.0, 4.0]
1919
variant = System.getProperty("variant") as BigDecimal ?: variants.first()
2020
buildScan.tag "groovy-$variant"

0 commit comments

Comments
 (0)