Skip to content

Commit

Permalink
Sonar build improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan202 committed Apr 28, 2023
1 parent fda1f3f commit aa78360
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: mvn -T1C jacoco:prepare-agent verify jacoco:report sonar:sonar -Dversion.jdk.runtime=17 -Dverification.skip -Dsonar.projectKey=PicnicSupermarket_error-prone-support
run: mvn -T1C jacoco:prepare-agent verify jacoco:report sonar:sonar -Dverification.skip -Dsonar.projectKey=PicnicSupermarket_error-prone-support
6 changes: 6 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1858,6 +1858,12 @@
<id>sonar</id>
<properties>
<maven.test.failure.ignore>true</maven.test.failure.ignore>
<!-- Normal builds use Jabel to target an older JDK version
than would normally supported given the language features used,
but this causes Sonar to report parse errors. So for Sonar
builds we target a JDK version that is properly compatible with
the source code.-->
<version.jdk.runtime>${version.jdk.source}</version.jdk.runtime>
</properties>
</profile>
<profile>
Expand Down

0 comments on commit aa78360

Please sign in to comment.