Skip to content
This repository was archived by the owner on Mar 29, 2025. It is now read-only.

Commit 1df0091

Browse files
authored
Update workflows to Java 21 (#24)
1 parent 1dc1716 commit 1df0091

File tree

5 files changed

+36
-17
lines changed

5 files changed

+36
-17
lines changed

.github/workflows/cross-version.yml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,34 @@ env:
77

88
jobs:
99

10+
java_17:
11+
12+
name: Java 17
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Set up Java
18+
uses: actions/setup-java@v3
19+
with:
20+
java-version: '17'
21+
distribution: 'zulu'
22+
cache: maven
23+
- name: Test
24+
run: ./mvnw $MAVEN_ARGS verify
25+
1026
java:
1127

1228
name: Java ${{ matrix.java }}
1329
strategy:
1430
fail-fast: false
1531
matrix:
16-
java: [21, 22]
32+
java: [22]
1733
runs-on: ubuntu-latest
1834

1935
steps:
2036
- uses: actions/checkout@v4
21-
- name: Setup Java
37+
- name: Set up Java
2238
uses: oracle-actions/setup-java@v1
2339
with:
2440
website: jdk.java.net
@@ -38,11 +54,11 @@ jobs:
3854

3955
steps:
4056
- uses: actions/checkout@v4
41-
- name: Set up JDK 17
57+
- name: Set up Java
4258
uses: actions/setup-java@v3
4359
with:
44-
java-version: '17'
45-
distribution: 'temurin'
60+
java-version: '21'
61+
distribution: 'zulu'
4662
cache: maven
4763
- name: Set Spring Boot ${{ matrix.spring }}
4864
run: >

.github/workflows/dependency-graph.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
- name: Set up JDK 17
1818
uses: actions/setup-java@v3
1919
with:
20-
java-version: '17'
21-
distribution: 'temurin'
20+
java-version: '21'
21+
distribution: 'zulu'
2222
cache: maven
2323
- name: Update dependency graph
2424
uses: advanced-security/maven-dependency-submission-action@v3

.github/workflows/main.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@ env:
77

88
jobs:
99

10-
java_17:
10+
java_21:
1111

12-
name: Java 17
12+
name: Java 21
1313
runs-on: ubuntu-latest
1414

1515
steps:
1616
- uses: actions/checkout@v4
17-
- name: Set up JDK 17
17+
- name: Set up Java
1818
uses: actions/setup-java@v3
1919
with:
20-
java-version: '17'
21-
distribution: 'temurin'
20+
java-version: '21'
21+
distribution: 'zulu'
2222
cache: maven
2323
- name: Test
2424
run: ./mvnw $MAVEN_ARGS verify
@@ -30,11 +30,11 @@ jobs:
3030

3131
steps:
3232
- uses: actions/checkout@v4
33-
- name: Set up JDK 17
33+
- name: Set up Java
3434
uses: actions/setup-java@v3
3535
with:
36-
java-version: '17'
37-
distribution: 'temurin'
36+
java-version: '21'
37+
distribution: 'zulu'
3838
cache: maven
3939
- name: Generate Javadoc
4040
run: ./mvnw $MAVEN_ARGS javadoc:javadoc

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
- name: Set up Java
2020
uses: actions/setup-java@v3
2121
with:
22-
java-version: 17
23-
distribution: 'temurin'
22+
java-version: '21'
23+
distribution: 'zulu'
2424

2525
- name: Publish to Maven Central
2626
run: ./mvnw $MAVEN_ARGS -Prelease deploy

src/main/java/io/github/scordio/springframework/batch/extensions/notion/Sort.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ private QuerySortDirection getQuerySortDirection() {
127127

128128
}
129129

130+
private Sort() {
131+
}
132+
130133
abstract QuerySort toQuerySort();
131134

132135
private static final class PropertySort extends Sort {

0 commit comments

Comments
 (0)