diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index b4708221f544..67ac12a8c880 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -47,8 +47,14 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild + if: matrix.language != "java" uses: github/codeql-action/autobuild@v2 + - name: Build Java + if: matrix.language == "java" + run: ./mvnw -B -DskipTests -Pcompile-jdk11 clean install --file pom.xml + working-directory: java + # ℹī¸ Command-line programs to run using the OS shell. # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun