Skip to content

Commit

Permalink
chore: prepare release 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
celcius112 committed Mar 9, 2023
1 parent 4297bf3 commit 9ca7fac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ plugins {
}

group = "com.ekino.oss.plugin"
version = "3.3.1"
version = "4.0.0"
findProperty("releaseVersion")?.let { version = it }

repositories {
Expand Down
13 changes: 6 additions & 7 deletions src/main/kotlin/com/ekino/oss/plugin/KotlinQualityPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import org.gradle.kotlin.dsl.getByType
import org.gradle.kotlin.dsl.withType
import org.gradle.testing.jacoco.plugins.JacocoPlugin
import org.gradle.testing.jacoco.plugins.JacocoPluginExtension
import org.gradle.testing.jacoco.plugins.JacocoReportAggregationPlugin
import org.gradle.testing.jacoco.tasks.JacocoReport
import org.jlleitschuh.gradle.ktlint.KtlintExtension
import org.jlleitschuh.gradle.ktlint.KtlintPlugin
Expand All @@ -32,15 +33,13 @@ class KotlinQualityPlugin : Plugin<Project> {
apply<SonarQubePlugin>()
apply<KtlintPlugin>()
apply<DetektPlugin>()
apply<JacocoReportAggregationPlugin>()

val jacocoXmlReportPath = "$buildDir/reports/jacoco/test/jacocoTestReport.xml"

tasks.withType<JacocoReport> {
val jacocoTestReports = tasks.withType<JacocoReport> {
reports {
xml.outputLocation.set(file(jacocoXmlReportPath))
xml.required.set(true)
csv.required.set(false)
html.required.set(false)
html.required.set(true)
}
}

Expand All @@ -53,7 +52,7 @@ class KotlinQualityPlugin : Plugin<Project> {
property("sonar.projectName", project.name)
property("sonar.sourceEncoding", "UTF-8")
property("sonar.host.url", extension.sonarUrl)
property("sonar.coverage.jacoco.xmlReportPaths", jacocoXmlReportPath)
property("sonar.coverage.jacoco.xmlReportPaths", "$buildDir/reports/jacoco/test/jacocoTestReport.xml")
}
}

Expand All @@ -68,7 +67,7 @@ class KotlinQualityPlugin : Plugin<Project> {
}

tasks.named(BUILD_GROUP) {
dependsOn("jacocoTestReport")
dependsOn(jacocoTestReports)
}
}
}
Expand Down

0 comments on commit 9ca7fac

Please sign in to comment.