You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The purpose of this project is to help you get started with Spock. The project includes several example specifications and build scripts for Gradle and Maven. It also makes it easy to create an Eclipse or IDEA project, allowing you to run the example specs from within your IDE.
11
+
The purpose of this project is to help you get started with Spock.
12
+
The project includes several example specifications and build scripts for Gradle and Maven.
13
+
It also makes it easy to create an Eclipse or IDEA project, allowing you to run the example specs from within your IDE.
12
14
13
-
All builds (Gradle and Maven) will automatically download all required dependencies, compile the project, and finally run the example specs. The Gradle build goes one step further by bootstrapping itself, alleviating the need to have a build tool preinstalled.
15
+
All builds (Gradle and Maven) will automatically download all required dependencies, compile the project, and finally run the example specs.
16
+
The Gradle build goes one step further by bootstrapping itself, alleviating the need to have a build tool preinstalled.
14
17
15
18
=== Prerequisites
16
19
17
20
- JDK 17 or higher
18
21
- Maven use `mvnw` wrapper
19
22
- Gradle use `gradlew` wrapper
20
23
21
-
NOTE: This example shows the usage of Spock 2.0, which uses the JUnit Platform. If you want to see how to get Spock 1.x with JUnit 4 up and running see the https://github.com/spockframework/spock-example/tree/spock-1.x[Spock-1.x] Branch.
24
+
NOTE: This example shows the usage of Spock 2.0, which uses the JUnit Platform.
25
+
If you want to see how to get Spock 1.x with JUnit 4 up and running see the https://github.com/spockframework/spock-example/tree/spock-1.x[Spock-1.x] Branch.
22
26
23
27
NOTE: Spock supports Java 8, but Groovy 5.0 requires Java 11+ and Gradle 9+ requires Java 17+.
24
28
So for simplicity’s sake the example uses Java 17.
@@ -28,14 +32,20 @@ NOTE: Spock supports Java 8, but Groovy 5.0 requires Java 11+ and Gradle 9+ requ
28
32
=== Building with Gradle
29
33
Type:
30
34
31
-
./gradlew clean test
35
+
[source,bash]
36
+
----
37
+
./gradlew clean test
38
+
----
32
39
33
40
Downloaded files (including the Gradle distribution itself) will be stored in the Gradle user home directory (typically *user_home*`/.gradle`).
34
41
35
42
=== Building with Maven
36
43
Type:
37
44
38
-
./mvnw clean test
45
+
[source,bash]
46
+
----
47
+
./mvnw clean test
48
+
----
39
49
40
50
Downloaded files will be stored in the local Maven repository (typically *user_home*`/.m2/repository`).
0 commit comments