Skip to content

Commit 90d08ef

Browse files
committed
build(sonar): change sonar execution rule
1 parent ea68fce commit 90d08ef

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

main.gradle

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,6 @@ allprojects {
1212
}
1313

1414
group 'org.reactivecommons'
15-
16-
sonar {
17-
properties {
18-
property "sonar.sourceEncoding", "UTF-8"
19-
property 'sonar.projectKey', 'reactive-commons_reactive-commons-java'
20-
property 'sonar.organization', 'reactive-commons'
21-
property 'sonar.host.url', 'https://sonarcloud.io'
22-
property "sonar.sources", "src/main"
23-
property "sonar.test", "src/test"
24-
property "sonar.java.binaries", "build/classes"
25-
property "sonar.junit.reportPaths", "build/test-results/test"
26-
property "sonar.java-coveragePlugin", "jacoco"
27-
property "sonar.coverage.jacoco.xmlReportPaths", "${rootDir}/build/reports/jacoco/generateMergedReport/generateMergedReport.xml"
28-
property "sonar.exclusions", ".github/**,samples/**/*"
29-
property 'sonar.coverage.exclusions', 'samples/**/*'
30-
}
31-
}
3215
}
3316

3417
nexusPublishing {
@@ -87,6 +70,23 @@ subprojects {
8770

8871
group groupId
8972

73+
sonar {
74+
properties {
75+
property "sonar.sourceEncoding", "UTF-8"
76+
property 'sonar.projectKey', 'reactive-commons_reactive-commons-java'
77+
property 'sonar.organization', 'reactive-commons'
78+
property 'sonar.host.url', 'https://sonarcloud.io'
79+
property "sonar.sources", "src/main"
80+
property "sonar.test", "src/test"
81+
property "sonar.java.binaries", "build/classes"
82+
property "sonar.junit.reportPaths", "build/test-results/test"
83+
property "sonar.java-coveragePlugin", "jacoco"
84+
property "sonar.coverage.jacoco.xmlReportPaths", "${rootDir}/build/reports/jacoco/generateMergedReport/generateMergedReport.xml"
85+
property "sonar.exclusions", ".github/**,samples/**/*"
86+
property 'sonar.coverage.exclusions', 'samples/**/*'
87+
}
88+
}
89+
9090
tasks.named("jar") {
9191
enabled = true
9292
archiveClassifier = ''

0 commit comments

Comments
 (0)