mirror of
https://github.com/danieldemus/openhab-core.git
synced 2026-07-29 12:34:22 +02:00
Raise minimum JDK version to 17 (#2994)
* Raise source level to Java 17 (except for model classes) * Remove Nashorn script engine * Upgrade spotless and add jvm options See https://github.com/diffplug/spotless/issues/834 * Add suppression for findBugs false positive error * Upgrade xtext to 2.29.0 * Adjust JNA * Resolve itests Signed-off-by: Jan N. Klug <github@klug.nrw>
This commit is contained in:
@@ -18,7 +18,7 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
java: [ '11', '17' ]
|
||||
java: [ '17' ]
|
||||
maven: [ '3.8.6' ]
|
||||
os: [ 'ubuntu-22.04' ]
|
||||
name: Build (Java ${{ matrix.java }}, ${{ matrix.os }})
|
||||
@@ -56,7 +56,7 @@ jobs:
|
||||
maven-version: ${{ matrix.maven }}
|
||||
|
||||
- name: Register Problem Matchers
|
||||
if: ${{ matrix.java == '11' }}
|
||||
if: ${{ matrix.java == '17' }}
|
||||
id: problem_matchers
|
||||
run: |
|
||||
echo "::add-matcher::.github/openhab-compile-problems.json"
|
||||
@@ -86,7 +86,7 @@ jobs:
|
||||
path: target/summary_report.html
|
||||
|
||||
- name: Report SAT Errors as Annotations
|
||||
if: ${{ matrix.java == '11' && always() && ((steps.build.outcome == 'success') || (steps.build.outcome == 'failure')) }}
|
||||
if: ${{ matrix.java == '17' && always() && ((steps.build.outcome == 'success') || (steps.build.outcome == 'failure')) }}
|
||||
uses: ghys/checkstyle-github-action@main
|
||||
with:
|
||||
title: CheckStyle Violations
|
||||
|
||||
Reference in New Issue
Block a user