From 44d365b15d05d4fdd423e5ae81e02a0d00bb9fcb Mon Sep 17 00:00:00 2001 From: games647 Date: Mon, 17 Jul 2023 15:52:54 +0200 Subject: [PATCH] Use java dot file to help autobuild select the correct version --- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/maven.yml | 2 +- .java-version | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 .java-version diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 419442cf..154014e0 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -48,7 +48,7 @@ jobs: uses: actions/setup-java@v3 with: distribution: 'temurin' - java-version: 19 + java-version-file: '.java-version' cache: 'maven' # Auto build attempts to build any compiled languages (C/C++, C#, or Java). diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 54aab9c5..f8798a15 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -33,7 +33,7 @@ jobs: uses: actions/setup-java@v3 with: distribution: 'temurin' - java-version: 19 + java-version-file: '.java-version' cache: 'maven' # Build and test (included in package) diff --git a/.java-version b/.java-version new file mode 100644 index 00000000..d6b24041 --- /dev/null +++ b/.java-version @@ -0,0 +1 @@ +19