Skip to content

Commit

Permalink
Build for Java 8 with JDK 17
Browse files Browse the repository at this point in the history
  • Loading branch information
reneleonhardt committed Dec 11, 2023
1 parent 5dec90d commit aed7a8a
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 20 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ jobs:
if: github.repository == 'pgjdbc/r2dbc-postgresql'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 1.8
uses: actions/setup-java@v3
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 8
distribution: temurin
cache: maven
java-version: '17'
distribution: 'temurin'
cache: 'maven'
- name: Build with Maven
env:
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/pullrequests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ jobs:
pr-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 1.8
uses: actions/setup-java@v3
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 8
distribution: temurin
cache: maven
java-version: '17'
distribution: 'temurin'
cache: 'maven'
- name: Build with Maven
run: ./mvnw -B verify -D skipITs
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ jobs:
if: github.repository == 'pgjdbc/r2dbc-postgresql'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 1.8
uses: actions/setup-java@v3
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 8
distribution: temurin
java-version: '17'
distribution: 'temurin'
- name: Initialize Maven Version
run: ./mvnw -q org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version
run: ./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout
- name: GPG Check
run: gpg -k
- name: Release with Maven
Expand Down
3 changes: 1 addition & 2 deletions ci/build-and-deploy-to-maven-central.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -euo pipefail

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

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

Expand Down Expand Up @@ -36,4 +36,3 @@ else
echo "Not a release: $VERSION"
exit 1
fi

0 comments on commit aed7a8a

Please sign in to comment.