Skip to content

Commit aed7a8a

Browse files
committed
Build for Java 8 with JDK 17
1 parent 5dec90d commit aed7a8a

File tree

4 files changed

+19
-20
lines changed

4 files changed

+19
-20
lines changed

.github/workflows/ci.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ jobs:
1212
if: github.repository == 'pgjdbc/r2dbc-postgresql'
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v3
16-
- name: Set up JDK 1.8
17-
uses: actions/setup-java@v3
15+
- uses: actions/checkout@v4
16+
- name: Set up JDK 17
17+
uses: actions/setup-java@v4
1818
with:
19-
java-version: 8
20-
distribution: temurin
21-
cache: maven
19+
java-version: '17'
20+
distribution: 'temurin'
21+
cache: 'maven'
2222
- name: Build with Maven
2323
env:
2424
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}

.github/workflows/pullrequests.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ jobs:
99
pr-build:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v3
13-
- name: Set up JDK 1.8
14-
uses: actions/setup-java@v3
12+
- uses: actions/checkout@v4
13+
- name: Set up JDK 17
14+
uses: actions/setup-java@v4
1515
with:
16-
java-version: 8
17-
distribution: temurin
18-
cache: maven
16+
java-version: '17'
17+
distribution: 'temurin'
18+
cache: 'maven'
1919
- name: Build with Maven
2020
run: ./mvnw -B verify -D skipITs

.github/workflows/release.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ jobs:
1212
if: github.repository == 'pgjdbc/r2dbc-postgresql'
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v3
16-
- name: Set up JDK 1.8
17-
uses: actions/setup-java@v3
15+
- uses: actions/checkout@v4
16+
- name: Set up JDK 17
17+
uses: actions/setup-java@v4
1818
with:
19-
java-version: 8
20-
distribution: temurin
19+
java-version: '17'
20+
distribution: 'temurin'
2121
- name: Initialize Maven Version
22-
run: ./mvnw -q org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version
22+
run: ./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout
2323
- name: GPG Check
2424
run: gpg -k
2525
- name: Release with Maven

ci/build-and-deploy-to-maven-central.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -euo pipefail
44

5-
VERSION=$(./mvnw org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version -o | grep -v INFO)
5+
VERSION=$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)
66

77
if [[ $VERSION =~ [^.*-SNAPSHOT$] ]] ; then
88

@@ -36,4 +36,3 @@ else
3636
echo "Not a release: $VERSION"
3737
exit 1
3838
fi
39-

0 commit comments

Comments
 (0)