Skip to content

Commit

Permalink
Release Spock 2.2-M1
Browse files Browse the repository at this point in the history
  • Loading branch information
leonard84 committed Feb 16, 2022
1 parent 2dd2a02 commit 849dd7c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 15 deletions.
36 changes: 23 additions & 13 deletions README.adoc
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
:spock-release-version: 2.2-M1
:spock-release-date: 2022-02-16
:spock-snapshot-version: 2.2

https://github.com/spockframework/spock/blob/master/LICENSE[image:https://img.shields.io/badge/License-Apache%202.0-blue.svg[License]]
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
Central]]
Expand All @@ -22,13 +26,13 @@ https://meetspock.appspot.com/[https://meetspock.appspot.com/].

=== Latest Versions

* The latest 2.x release version is *2.1* (2.1-groovy-2.5,
2.1-groovy-3.0), released on 2022-02-15.
* The current development version is *2.2-SNAPSHOT*
(2.2-groovy-2.5-SNAPSHOT, 2.2-groovy-3.0-SNAPSHOT).
* The latest 2.x release version is *{spock-release-version}* ({spock-release-version}-groovy-2.5,
{spock-release-version}-groovy-3.0, {spock-release-version}-groovy-4.0), released on {spock-release-date}.
* The current development version is *{spock-snapshot-version}-SNAPSHOT*
({spock-snapshot-version}-groovy-2.5-SNAPSHOT, {spock-snapshot-version}-groovy-3.0-SNAPSHOT, , {spock-snapshot-version}-groovy-4.0-SNAPSHOT).

*NOTE:* Spock 2.x is based on the JUnit 5 Platform and require Java
8+/groovy-2.5+ (Groovy 3.0 is recommended, especially in projects using
8+/groovy-2.5+ (Groovy 3.0 or 4.0 is recommended, especially in projects using
Java 12+).

Releases are available from
Expand All @@ -47,16 +51,16 @@ instructions):
. Use `org.spockframework.spock` as `groupId` and the normal
`artifact-id`

[source,groovy]
[source,groovy,subs="attributes"]
----
repositories {
// ...
maven { url 'https://jitpack.io' }
}
dependencies {
testImplementation 'org.spockframework.spock:spock-core:spock-2.1'
testImplementation 'org.spockframework.spock:spock-spring:spock-2.1'
testImplementation 'org.spockframework.spock:spock-core:spock-{spock-release-version}'
testImplementation 'org.spockframework.spock:spock-spring:spock-{spock-release-version}'
}
----

Expand Down Expand Up @@ -84,19 +88,25 @@ https://tapestry.apache.org/[Tapestry 5] IoC container.

Spock is supported for Java version 8+.

Spock is supported for Groovy versions 2.5 and 3.0.
Spock is supported for Groovy versions 2.5, 3.0, and 4.0.

The tests are testing Spock with the specific versions (variants) of
Groovy and Java. Default Groovy version is 2.5.

The Groovy 2.5 and 3.0 variant should pass on all supported JDK
versions:
The Groovy 3.0 and 4.0 variant should pass on all supported JDK versions,
Groovy 2.5 does not work with Java 17+:

....
./gradlew build
....

To build a specific variant of Spock, use the variant name as a parameter

....
./gradlew clean build
./gradlew build -Dvariant=4.0
....

(Windows: `gradlew clean build`). All build dependencies, including the
(Windows: `gradlew build`). All build dependencies, including the
https://www.gradle.org[build tool] itself, will be downloaded
automatically (unless already present).

Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ description = "Spock Framework"

ext {
baseVersion = "2.2"
snapshotVersion = true
milestone = 0
snapshotVersion = false
milestone = 1
variants = [2.5, 3.0, 4.0]
variant = System.getProperty("variant") as BigDecimal ?: variants.first()
buildScan.tag "groovy-$variant"
Expand Down

0 comments on commit 849dd7c

Please sign in to comment.