Add SonarCloud analysis
This commit is contained in:
parent
71affacee2
commit
5db8037b8b
6
.github/workflows/maven.yml
vendored
6
.github/workflows/maven.yml
vendored
@ -23,4 +23,8 @@ jobs:
|
||||
- name: Install xvfb
|
||||
run: sudo apt-get install xvfb
|
||||
- name: Build with Maven
|
||||
run: xvfb-run mvn clean verify
|
||||
with:
|
||||
args: xvfb-run mvn clean verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.REPOSITORY_ACCESS_TOKEN }}
|
||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
|
10
pom.xml
10
pom.xml
@ -54,6 +54,11 @@
|
||||
<annotation-api.version>1.3.2</annotation-api.version>
|
||||
<system-rules.version>1.19.0</system-rules.version>
|
||||
<urm.version>1.4.8</urm.version>
|
||||
<!-- SonarCloud -->
|
||||
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
|
||||
<sonar.organization>iluwatar</sonar.organization>
|
||||
<sonar.projectKey>iluwatar_java-design-patterns</sonar.projectKey>
|
||||
<sonar.projectName>Java Design Patterns</sonar.projectName>
|
||||
</properties>
|
||||
<modules>
|
||||
<module>abstract-factory</module>
|
||||
@ -400,6 +405,11 @@
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.sonarsource.scanner.maven</groupId>
|
||||
<artifactId>sonar-maven-plugin</artifactId>
|
||||
<version>3.7.0.1746</version>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user