File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 5151 run : gradlew --info check
5252 build :
5353 name : Sonar analysis
54+ needs : validation
5455 runs-on : ubuntu-latest
5556 steps :
5657 - uses : actions/checkout@v2
Original file line number Diff line number Diff line change @@ -38,18 +38,21 @@ plugins {
3838 id " com.jfrog.artifactory" version " 4.11.0" apply false
3939 id " biz.aQute.bnd.builder" version " 5.1.2" apply false
4040 id " org.sonarqube" version " 3.0"
41+ id " jacoco"
4142}
4243
4344sonarqube {
4445 properties {
4546 property " sonar.projectKey" , " graphql-java-kickstart_graphql-java-servlet"
4647 property " sonar.organization" , " graphql-java-kickstart"
4748 property " sonar.host.url" , " https://sonarcloud.io"
49+ property " sonar.coverage.jacoco.xmlReportPaths" , " $projectDir /*/build/reports/jacoco/test/jacocoTestReport.xml"
4850 }
4951}
5052
5153subprojects {
5254 apply plugin : ' idea'
55+ apply plugin : ' jacoco'
5356 apply plugin : ' java'
5457 apply plugin : ' maven-publish'
5558 apply plugin : " com.jfrog.bintray"
@@ -84,6 +87,13 @@ subprojects {
8487 sha256 = " "
8588 }
8689
90+ jacocoTestReport {
91+ reports {
92+ xml. enabled = true
93+ html. enabled = false
94+ csv. enabled = false
95+ }
96+ }
8797
8898 if (! it. name. startsWith(' example' )) {
8999
You can’t perform that action at this time.
0 commit comments