Skip to content

Commit

Permalink
feat: add configurable property for skipping sonar compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
celcius112 committed Nov 6, 2023
1 parent a339095 commit a6676e0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ The plugin provides some settings :
configure<KotlinQualityPluginExtension> {
customDetektConfig = "my-detekt.yml" // custom name for your detekt config, detekt-config-custom.yml by default
sonarUrl = "https://my-sonar.com"
skipCompile = false
}
```
or
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ class KotlinQualityPlugin : Plugin<Project> {
property("sonar.sourceEncoding", "UTF-8")
property("sonar.host.url", extension.sonarUrl)
property("sonar.coverage.jacoco.xmlReportPaths", "${layout.buildDirectory}/reports/jacoco/test/jacocoTestReport.xml")
property("sonar.gradle.skipCompile", extension.skipCompile)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ open class KotlinQualityPluginExtension {
var customDetektConfig = "detekt-config-custom.yml"

var sonarUrl = "https://sonar.ekino.com"

var skipCompile = true
}

0 comments on commit a6676e0

Please sign in to comment.