diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9293c3c7..edd56682 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,10 +20,10 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 # Disabling shallow clone is recommended for improving relevancy of reporting - - name: Set up JDK 1.11 + - name: Set up JDK uses: actions/setup-java@v4 with: - java-version: '11' + java-version: '17' distribution: 'adopt' cache: maven - name: Build with Maven @@ -46,6 +46,12 @@ jobs: uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.sha }} + - name: Set up JDK + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'adopt' + cache: maven - env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} @@ -57,10 +63,10 @@ jobs: needs: build-dmn-check steps: - uses: actions/checkout@v4 - - name: Set up JDK 1.11 + - name: Set up JDK uses: actions/setup-java@v4 with: - java-version: '11' + java-version: '17' distribution: 'adopt' cache: maven - name: Build with Gradle diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 49d1454b..5c0c25d8 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -42,6 +42,12 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 + - name: Set up JDK + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'adopt' + # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@v3 diff --git a/.github/workflows/javadoc-publish.yml b/.github/workflows/javadoc-publish.yml index 7a65fa52..2128fffe 100644 --- a/.github/workflows/javadoc-publish.yml +++ b/.github/workflows/javadoc-publish.yml @@ -17,5 +17,5 @@ jobs: with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} javadoc-branch: javadoc - java-version: 11 + java-version: 17 target-folder: javadoc diff --git a/.github/workflows/jib-publish.yml b/.github/workflows/jib-publish.yml index eedcfc33..5085892d 100644 --- a/.github/workflows/jib-publish.yml +++ b/.github/workflows/jib-publish.yml @@ -15,6 +15,6 @@ jobs: uses: MathieuSoysal/jib-container-publish.yml@main with: PASSWORD: ${{ secrets.GITHUB_TOKEN }} - java-version: 11 + java-version: 17 module: cli main-class: de.redsix.dmncheck.cli.Main \ No newline at end of file diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index de0c3412..9322d82e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -28,7 +28,7 @@ jobs: - name: Set up Maven Central Repository uses: actions/setup-java@v4 with: - java-version: '11' + java-version: '17' distribution: 'adopt' cache: maven server-id: ossrh @@ -61,7 +61,7 @@ jobs: - name: Set up Java uses: actions/setup-java@v4 with: - java-version: '11' + java-version: '17' distribution: 'adopt' cache: maven - name: Publish package diff --git a/.lgtm.yml b/.lgtm.yml index 9d6d25f4..d50bdd21 100644 --- a/.lgtm.yml +++ b/.lgtm.yml @@ -1,4 +1,4 @@ extraction: java: index: - java_version: "11" + java_version: "17" diff --git a/README.md b/README.md index 37209ba4..da088dc3 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ to skim the specification. ### Prerequisites -This plugin requires Java 11 or later and Apache Maven 3 or later. Some analyses are tailored towards the Camunda DMN implementation and +This plugin requires Java 17 or later and Apache Maven 3 or later. Some analyses are tailored towards the Camunda DMN implementation and might not work for different DMN implementations. ### Usage diff --git a/gradle-plugin/build.gradle b/gradle-plugin/build.gradle index e7766245..63494410 100644 --- a/gradle-plugin/build.gradle +++ b/gradle-plugin/build.gradle @@ -10,8 +10,8 @@ group 'de.redsix' description 'Gradle Plugin for the DMN analysis tool dmn-check' version '1.4.0-SNAPSHOT' -sourceCompatibility = 1.11 -targetCompatibility = 1.11 +sourceCompatibility = 1.17 +targetCompatibility = 1.17 repositories { mavenLocal() diff --git a/pom.xml b/pom.xml index 4ae395b2..26600c32 100644 --- a/pom.xml +++ b/pom.xml @@ -69,7 +69,7 @@ - 11 + 17 UTF-8 2023-01-01T00:00:00Z @@ -257,6 +257,14 @@ -J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED -Astubs=checkerframework/stubs -AstubWarnIfNotFound