Skip to content

Commit fcd90e6

Browse files
authored
Merge branch 'master' into gradle-9
2 parents 0c4e078 + 3493297 commit fcd90e6

File tree

28 files changed

+81
-113
lines changed

28 files changed

+81
-113
lines changed

.github/actions/setup-build-env/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ runs:
1414
with:
1515
additional-java-version: ${{ inputs.additional-java-version }}
1616
- name: Init Gradle Build Action
17-
uses: gradle/actions/setup-gradle@v4
17+
uses: gradle/actions/setup-gradle@v5
1818
with:
1919
cache-read-only: ${{ github.ref != 'refs/heads/master' }}
2020
- name: 'Gradle javaToolchains'

.github/actions/setup-jdks/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ runs:
88
using: "composite"
99
steps:
1010
- name: 'Set up JDK ${{ inputs.additional-java-version }}'
11-
uses: actions/setup-java@v4
11+
uses: actions/setup-java@v5
1212
if: inputs.additional-java-version != 8 && inputs.additional-java-version != 17
1313
with:
1414
distribution: 'temurin'
@@ -18,7 +18,7 @@ runs:
1818
run: echo "JDK${{ inputs.additional-java-version }}=$JAVA_HOME" >> $GITHUB_ENV
1919
# We need JDK to compile Spock Core
2020
- name: 'Set up JDK 8'
21-
uses: actions/setup-java@v4
21+
uses: actions/setup-java@v5
2222
with:
2323
# Temurin JDK 8 for macos on ARM is not available: https://github.com/adoptium/adoptium/issues/96
2424
distribution: ${{ ((runner.os == 'macOS') && (runner.arch == 'ARM64')) && 'zulu' || 'temurin' }}
@@ -28,7 +28,7 @@ runs:
2828
run: echo "JDK8=$JAVA_HOME" >> $GITHUB_ENV
2929
# We need JDK 17 for the Gradle build logic
3030
- name: 'Set up JDK 17'
31-
uses: actions/setup-java@v4
31+
uses: actions/setup-java@v5
3232
with:
3333
distribution: 'temurin'
3434
java-version: 17

.github/workflows/branches-and-prs.main.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
@file:Repository("https://repo.maven.apache.org/maven2/")
2222
// work-around for https://youtrack.jetbrains.com/issue/KT-69145
23-
@file:DependsOn("io.github.typesafegithub:github-workflows-kt:3.4.0")
23+
@file:DependsOn("io.github.typesafegithub:github-workflows-kt:3.5.0")
2424

2525
@file:Repository("https://bindings.krzeminski.it/")
2626
@file:DependsOn("actions:checkout___major:[v4,v5-alpha)")

.github/workflows/branches-and-prs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
- '11'
6262
- '17'
6363
- '21'
64-
- '23'
64+
- '24'
6565
os:
6666
- 'ubuntu-latest'
6767
exclude:
@@ -72,7 +72,7 @@ jobs:
7272
java: '21'
7373
os: 'ubuntu-latest'
7474
- variant: '2.5'
75-
java: '23'
75+
java: '24'
7676
os: 'ubuntu-latest'
7777
include:
7878
- variant: '2.5'

.github/workflows/codeql-analysis.main.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
@file:Repository("https://repo.maven.apache.org/maven2/")
2222
// work-around for https://youtrack.jetbrains.com/issue/KT-69145
23-
@file:DependsOn("io.github.typesafegithub:github-workflows-kt:3.4.0")
23+
@file:DependsOn("io.github.typesafegithub:github-workflows-kt:3.5.0")
2424

2525
@file:Repository("https://bindings.krzeminski.it/")
2626
@file:DependsOn("actions:checkout___major:[v4,v5-alpha)")

.github/workflows/common.main.kts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*/
1818

1919
@file:Repository("https://repo.maven.apache.org/maven2/")
20-
@file:DependsOn("io.github.typesafegithub:github-workflows-kt:3.4.0")
20+
@file:DependsOn("io.github.typesafegithub:github-workflows-kt:3.5.0")
2121

2222
import io.github.typesafegithub.workflows.domain.Job
2323
import io.github.typesafegithub.workflows.domain.JobOutputs.EMPTY
@@ -85,6 +85,7 @@ data class Matrix(
8585

8686
data class Axes(
8787
val javaVersions: List<String>,
88+
val additionalJavaTestVersions: List<String>,
8889
val variants: List<String>
8990
)
9091

@@ -137,7 +138,7 @@ val Matrix.Companion.full
137138
get() = Matrix(
138139
operatingSystems = listOf("ubuntu-latest"),
139140
variants = axes.variants,
140-
javaVersions = axes.javaVersions + "23",
141+
javaVersions = axes.javaVersions + axes.additionalJavaTestVersions,
141142
exclude = { (variant == "2.5") && (javaVersion!!.toInt() >= 17) },
142143
includes = listOf("windows-latest", "macos-latest")
143144
.map {
@@ -159,13 +160,18 @@ val Matrix.Companion.axes by lazy {
159160

160161
Matrix.Axes(
161162
properties.getList("javaVersionsList"),
163+
properties.getList("additionalJavaTestVersionsList"),
162164
properties.getList("variantsList")
163165
)
164166
}
165167
}
166168

167169
fun Properties.getList(key: String) =
168-
getProperty(key).trim().split("""\s*+,\s*+""".toRegex())
170+
getProperty(key)
171+
?.trim()
172+
?.split("""\s*+,\s*+""".toRegex())
173+
?.filter { it.isNotBlank() }
174+
?: emptyList()
169175

170176
data class SetupBuildEnv(
171177
val additionalJavaVersion: String? = null

.github/workflows/docs-pr.main.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
@file:Repository("https://repo.maven.apache.org/maven2/")
2222
// work-around for https://youtrack.jetbrains.com/issue/KT-69145
23-
@file:DependsOn("io.github.typesafegithub:github-workflows-kt:3.4.0")
23+
@file:DependsOn("io.github.typesafegithub:github-workflows-kt:3.5.0")
2424

2525
@file:Repository("https://bindings.krzeminski.it/")
2626
@file:DependsOn("actions:checkout___major:[v4,v5-alpha)")

.github/workflows/release.main.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
@file:Repository("https://repo.maven.apache.org/maven2/")
2222
// work-around for https://youtrack.jetbrains.com/issue/KT-69145
23-
@file:DependsOn("io.github.typesafegithub:github-workflows-kt:3.4.0")
23+
@file:DependsOn("io.github.typesafegithub:github-workflows-kt:3.5.0")
2424

2525
@file:Repository("https://bindings.krzeminski.it/")
2626
@file:DependsOn("actions:checkout___major:[v4,v5-alpha)")

.github/workflows/release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- '11'
4242
- '17'
4343
- '21'
44-
- '23'
44+
- '24'
4545
os:
4646
- 'ubuntu-latest'
4747
exclude:
@@ -52,7 +52,7 @@ jobs:
5252
java: '21'
5353
os: 'ubuntu-latest'
5454
- variant: '2.5'
55-
java: '23'
55+
java: '24'
5656
os: 'ubuntu-latest'
5757
include:
5858
- variant: '2.5'

README.adoc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ image::docs/images/spock-main-logo.png[width=100px,float=right]
1818
== Spock Framework
1919

2020
Spock is a BDD-style developer testing and specification framework for
21-
Java and https://groovy-lang.org/[Groovy] applications.To learn more
21+
Java and https://groovy-lang.org/[Groovy] applications. To learn more
2222
about Spock, visit
23-
https://spockframework.org[https://spockframework.org].To run a sample
23+
https://spockframework.org[https://spockframework.org]. To run a sample
2424
spec in your browser use the
2525
https://groovyconsole.dev/[Groovy Web Console].
2626

@@ -29,9 +29,9 @@ https://groovyconsole.dev/[Groovy Web Console].
2929
* The latest 2.x release version is *{spock-release-version}* ({spock-release-version}-groovy-2.5,
3030
{spock-release-version}-groovy-3.0, {spock-release-version}-groovy-4.0), released on {spock-release-date}.
3131
* 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).
32+
({spock-snapshot-version}-groovy-2.5-SNAPSHOT, {spock-snapshot-version}-groovy-3.0-SNAPSHOT, {spock-snapshot-version}-groovy-4.0-SNAPSHOT).
3333

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

@@ -44,7 +44,7 @@ OSS].
4444
==== Ad-Hoc Intermediate Releases
4545

4646
For intermediate stable builds we recommend to use
47-
https://jitpack.io/#org.spockframework/spock[Jitpack] (go here for
47+
https://jitpack.io/#org.spockframework/spock[JitPack] (go here for
4848
instructions):
4949

5050
. Add https://jitpack.io[https://jitpack.io] as a repository
@@ -117,13 +117,13 @@ To build a specific variant of Spock, use the variant name as a parameter
117117
....
118118

119119
To test against a specific Java version, use the java version name as a parameter, the path to the Java version must be set via an environment variable `JDK<version>=<PATH>`.
120-
Of course, this can combined with the variant selection from above.
120+
Of course, this can be combined with the variant selection from above.
121121

122122
....
123123
./gradlew build -DjavaVersion=17
124124
....
125125

126-
(Windows: `gradlew build`). All build dependencies, including the
126+
(In `cmd.exe`: `gradlew build`). All build dependencies, including the
127127
https://www.gradle.org[build tool] itself, will be downloaded
128128
automatically (unless already present).
129129

@@ -142,8 +142,8 @@ feedback is appreciated!
142142
=== Java 9 Module Names
143143

144144
All published jars (beginning with Spock 1.2) will contain
145-
Automatic-Module-Name manifest attribute. This allows for Spock to be
146-
used in a Java 9 Module Path.
145+
`Automatic-Module-Name` manifest attribute. This allows for Spock to be
146+
used in a Java 9+ Module Path.
147147

148148
* spock-core -- `org.spockframework.core`
149149
* spock-spring -- `org.spockframework.spring`

0 commit comments

Comments
 (0)