Skip to content

Commit 767d112

Browse files
author
Vladimir Kotal
committed
add Sonar profile
1 parent 15712e9 commit 767d112

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

dev/main

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if [[ "x$OPENGROK_REPO_SLUG" == "xoracle/opengrok" && "x$OPENGROK_BRANCH" == "xm
2323
#
2424
if [[ -z "${OPENGROK_PULL_REQUEST}" ]]; then
2525
echo "Enabling Sonar"
26-
extra_args="$extra_args -Dsonar.login=$OPENGROK_SONAR_TOKEN sonar:sonar"
26+
extra_args="$extra_args -P sonar -Dsonar.login=$OPENGROK_SONAR_TOKEN sonar:sonar"
2727
fi
2828
fi
2929

pom.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,25 @@ Portions Copyright (c) 2018, 2020, Chris Fraire <[email protected]>.
381381
</plugins>
382382
</build>
383383
</profile>
384+
<profile>
385+
<id>sonar</id>
386+
<properties>
387+
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
388+
<sonar.organization>opengrok</sonar.organization>
389+
</properties>
390+
<build>
391+
<plugins>
392+
<plugin>
393+
<groupId>org.jacoco</groupId>
394+
<artifactId>jacoco-maven-plugin</artifactId>
395+
</plugin>
396+
<plugin>
397+
<groupId>org.sonarsource.scanner.maven</groupId>
398+
<artifactId>sonar-maven-plugin</artifactId>
399+
</plugin>
400+
</plugins>
401+
</build>
402+
</profile>
384403
</profiles>
385404

386405
<reporting>

0 commit comments

Comments
 (0)