From 65d47574bfdb4bca00d1b6fea853ecb6eb5b9f73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Manteaux?= Date: Fri, 20 Oct 2023 13:41:20 +0200 Subject: [PATCH] Fix sonar --- .github/workflows/build.yml | 5 +++++ sonar-project.properties | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 04ee2df..34017c8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,6 +27,11 @@ jobs: cache: maven - name: Build & test with Maven run: mvn clean test + - name: Sonar analysis + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + run: mvn verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar sonarcloud: runs-on: ubuntu-latest diff --git a/sonar-project.properties b/sonar-project.properties index 8f70a36..464c796 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -5,7 +5,7 @@ sonar.sourceEncoding=UTF-8 sonar.sources=src # Java -# sonar.java.binaries=/usr/local/java/jdk-17/bin/ +sonar.java.source=17 sonar.exclusions=src/main/java/com/coreoz/db/generated/*,\ src/main/java/com/coreoz/db/QuerydslGenerator.java