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 40e5e21 commit eeae7c2
Show file tree
Hide file tree
Showing 2 changed files with 12 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
11 changes: 11 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1856,8 +1856,19 @@
</profile>
<profile>
<id>sonar</id>
<activation>
<property>
<name>sonar.projectKey</name>
</property>
</activation>
<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 eeae7c2

Please sign in to comment.