diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml deleted file mode 100644 index de7c3ee..0000000 --- a/.github/workflows/codeql-analysis.yml +++ /dev/null @@ -1,52 +0,0 @@ -# GitHub Action workflow to run CodeQL. -name: "CodeQL" -on: - push: - pull_request: - schedule: - - cron: '25 6 * * 5' - -concurrency: - group: "${{ github.workflow }}-${{ github.event.number || github.ref }}" - cancel-in-progress: true - -env: - JAVA_VERSION: 18 - -jobs: - analyze: - name: "Analyze" - if: "${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}" - runs-on: "ubuntu-latest" - permissions: - actions: read - contents: read - security-events: write - - strategy: - fail-fast: false - matrix: - language: [ "java" ] - - steps: - - name: "Checkout repository" - uses: actions/checkout@v3 - - - name: "Initialize CodeQL" - uses: github/codeql-action/init@v2 - with: - languages: "${{ matrix.language }}" - - - name: "Set up JDK ${{ env.JAVA_VERSION }}" - uses: actions/setup-java@v3 - with: - java-version: "${{ env.JAVA_VERSION }}" - distribution: "adopt" - - - name: "Build" - uses: gradle/gradle-build-action@v2 - with: - arguments: "build" - - - name: "Perform CodeQL Analysis" - uses: github/codeql-action/analyze@v2 diff --git a/build-logic/build.gradle.kts b/build-logic/build.gradle.kts index d674f5e..ea7366d 100644 --- a/build-logic/build.gradle.kts +++ b/build-logic/build.gradle.kts @@ -37,6 +37,7 @@ dependencies { } java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 + toolchain { + languageVersion = JavaLanguageVersion.of(8) + } } \ No newline at end of file