Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
kkovarik committed Nov 22, 2018
1 parent 2df2925 commit 759f3af
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 10 deletions.
8 changes: 7 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
language: java
addons:
  sonarcloud:
    organization: "openwisesolutions" # registered at sonarcloud.io
    token:
      secure: $SONAR_TOKEN
jdk:
- oraclejdk8
env:
Expand All @@ -19,7 +24,8 @@ after_success:
- .utility/push-javadoc-to-gh-pages.sh
- .utility/publish-artifacts.sh
# 'coveralls:report' goal is responsible for updating coverall.io stats once travisCI build completes
- mvn coveralls:report
- mvn coveralls:report
- mvn spotbugs:spotbugs sonar:sonar
cache:
directories:
- $HOME/.m2
Expand Down
30 changes: 22 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,10 @@
<javamelody-version>1.65.0</javamelody-version>
<metrics-version>3.2.0</metrics-version>
<jolokia-version>1.3.5</jolokia-version>
<sonar-maven-plugin.version>3.5.0.1254</sonar-maven-plugin.version>
<sonar.java.spotbugs.reportPaths>./target/spotbugsXml.xml</sonar.java.spotbugs.reportPaths>
<sonar.java.pmd.reportPaths>./target/pmd.xml</sonar.java.pmd.reportPaths>
<sonar.java.checkstyle.reportPaths>./target/checkstyle-result.xml</sonar.java.checkstyle.reportPaths>
<!-- java ee -->
<jaxb.version>2.2.11</jaxb.version>
<jaxws.version>2.2.12</jaxws.version>
Expand Down Expand Up @@ -601,13 +605,12 @@
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>3.0.4</version>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>3.1.8</version>
<configuration>
<findbugsXmlOutput>true</findbugsXmlOutput>
<xmlOutput>true</xmlOutput>
<excludeFilterFile>findbugs-exclude.xml</excludeFilterFile>
<failOnError>false</failOnError>
<excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
</configuration>
</plugin>

Expand Down Expand Up @@ -751,6 +754,12 @@
<goals>deploy</goals>
</configuration>
</plugin>

<plugin>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>${sonar-maven-plugin.version}</version>
</plugin>
</plugins>
</pluginManagement>

Expand Down Expand Up @@ -791,8 +800,8 @@
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
</plugin>

<plugin>
Expand Down Expand Up @@ -834,6 +843,11 @@
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
</plugin>

<plugin>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
2 changes: 2 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sonar.projectKey=OpenWiseSolutions_openhub-framework
sonar.organization=openwisesolutions
File renamed without changes.
2 changes: 1 addition & 1 deletion test/src/main/resources/application-test.properties
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ spring.jpa.hibernate.ddl-auto=validate
flyway.enabled=false

# Show or not log for each sql query
spring.jpa.show-sql=true
spring.jpa.show-sql=false

# Additional native properties to set on the JPA provider.
spring.jpa.properties.hibernate.format_sql=true
Expand Down

0 comments on commit 759f3af

Please sign in to comment.