Browse Source

Actions: Adjust java versions

With the compilation of the module-info a java toolchain with version at least 11 is required.
macos/dialog_size
weisj 3 years ago committed by Jannis Weis
parent
commit
7ca3405acc
  1. 2
      .github/workflows/branch-snapshot.yml
  2. 2
      .github/workflows/codeql-analysis.yml
  3. 22
      .github/workflows/gradle.yml
  4. 4
      .github/workflows/snapshot.yml

2
.github/workflows/branch-snapshot.yml

@ -20,7 +20,7 @@ jobs:
if: contains(github.event.pull_request.labels.*.name, 'published to test')
uses: actions/setup-java@v1
with:
java-version: 8
java-version: 11
- name: Extract branch name
if: contains(github.event.pull_request.labels.*.name, 'published to test')
shell: bash

2
.github/workflows/codeql-analysis.yml

@ -37,7 +37,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 8
java-version: 11
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL

22
.github/workflows/gradle.yml

@ -39,7 +39,7 @@ jobs:
name: windows-test-results
path: build/test_results
linux:
linux8:
name: Linux (Java 8)
runs-on: ubuntu-latest
permissions:
@ -53,6 +53,26 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 8
- name: Build
env:
PROPS_GITHUB: "-PgithubAccessToken=${{ secrets.GITHUB_TOKEN }}"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./gradlew build -x test -PskipAutostyle -PskipModuleInfo -PfailIfLibraryMissing=true $(echo $PROPS_GITHUB) --no-daemon
linux:
name: Linux (Java 11)
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Build & Test
env:
PROPS_GITHUB: "-PgithubAccessToken=${{ secrets.GITHUB_TOKEN }}"

4
.github/workflows/snapshot.yml

@ -22,10 +22,10 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 10
- name: Set up JDK 8
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 8
java-version: 11
- name: Publish
env:
PROPS_RELEASE: "-Prc=1 -Pgh -Prelease=false -PskipJavadoc -PskipAutostyle -PfailIfLibraryMissing"

Loading…
Cancel
Save