Skip to content

Commit

Permalink
Fix #143: Configure project for Sonar Cloud
Browse files Browse the repository at this point in the history
Task-Url: #143
  • Loading branch information
turesheim committed Oct 2, 2019
1 parent 8a6504e commit d442c8f
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
language: java
sudo: false
script: mvn clean verify -Pskip-ui-tests
script: mvn clean verify org.jacoco:jacoco-maven-plugin:prepare-agent install sonar:sonar -Dsonar.projectKey=turesheim_eclipse-timekeeper
jdk:
- openjdk8
cache:
directories:
- $HOME/.m2
addons:
sonarcloud:
organization: "turesheim-github"
token:
secure: "ASUilEjJT5fYjMN6Cy5gVeY1fuKiIwEKLX9sxPltAowFABpzzimgLy+Ytbvh1GLsqnCXtVOYSkcClpNHezkuJwVMopj/IQiVl3cB9Qm3BySCgsQVPWHy2+DZ/sMMVMoVdtiQaycP3a8GY3tbi6Wofbb090vmPHNcn13AWEWXOBA="
deploy:
# Deploy to GitHub releases if the master branch has been tagged
provider: releases
Expand Down
2 changes: 1 addition & 1 deletion net.resheim.eclipse.timekeeper-site/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</parent>

<artifactId>net.resheim.eclipse.timekeeper-site</artifactId>
<name>Eclipse Timekeeper p2 Repository</name>
<name>Timekeeper for Eclipse p2 Repository</name>
<packaging>eclipse-repository</packaging>
<build>
<plugins>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<version>2.0.0-SNAPSHOT</version>
<packaging>pom</packaging>

<name>Eclipse Timekeeper</name>
<name>Timekeeper for Eclipse</name>

<issueManagement>
<system>GitHub</system>
Expand Down
28 changes: 28 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
sonar.projectKey=turesheim_eclipse-timekeeper
sonar.projectName=Timekeeper for Eclipse
sonar.projectVersion=2.0.0-SNAPSHOT

# =====================================================
# Meta-data for the project
# =====================================================

sonar.links.homepage=https://github.com/turesheim/eclipse-timekeeper
sonar.links.ci=https://github.com/turesheim/eclipse-timekeeper
sonar.links.scm=https://github.com/turesheim/eclipse-timekeeper
sonar.links.issue=https://github.com/turesheim/eclipse-timekeeper/issues

sonar.sources=src # we simply need this to stop the whining
sonar.java.coveragePlugin=jacoco

# java version used by source files:
sonar.java.source=8

sonar.modules=net.resheim.eclipse.timekeeper.db,net.resheim.eclipse.timekeeper.ui
net.resheim.eclipse.timekeeper.db.sonar.projectName=Timekeeper database
net.resheim.eclipse.timekeeper.db.sonar.sources=src
net.resheim.eclipse.timekeeper.db.sonar.tests=src-test
net.resheim.eclipse.timekeeper.db.sonar.java.binaries=target/classes
net.resheim.eclipse.timekeeper.ui.sonar.projectName=Timekeeper
net.resheim.eclipse.timekeeper.ui.sonar.sources=src
net.resheim.eclipse.timekeeper.ui.sonar.tests=src-test
net.resheim.eclipse.timekeeper.ui.sonar.java.binaries=target/classes

0 comments on commit d442c8f

Please sign in to comment.