Merge pull request #371 from usbharu/renovate/org.jetbrains.kotlinx.kover-0.x

chore(deps): update plugin kover to v0.8.0
This commit is contained in:
usbharu 2024-05-18 16:26:08 +09:00 committed by GitHub
commit d0da23ee90
3 changed files with 33 additions and 28 deletions

View File

@ -244,7 +244,7 @@ jobs:
uses: madrapps/jacoco-report@v1.6.1 uses: madrapps/jacoco-report@v1.6.1
with: with:
paths: | paths: |
${{ github.workspace }}/build/reports/kover/report.xml ${{ github.workspace }}/hideout-core/build/reports/kover/report.xml
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
title: Code Coverage title: Code Coverage
update-comment: true update-comment: true

View File

@ -31,12 +31,12 @@ version = "0.0.1"
sourceSets { sourceSets {
create("intTest") { create("intTest") {
compileClasspath += sourceSets.main.get().output compileClasspath += sourceSets.main.get().output
runtimeClasspath += sourceSets.main.get().output runtimeClasspath += sourceSets.main.get().output
} }
create("e2eTest") { create("e2eTest") {
compileClasspath += sourceSets.main.get().output compileClasspath += sourceSets.main.get().output
runtimeClasspath += sourceSets.main.get().output runtimeClasspath += sourceSets.main.get().output
} }
} }
@ -304,29 +304,34 @@ project.gradle.taskGraph.whenReady {
} }
kover { kover {
excludeSourceSets { currentProject {
names("aot", "e2eTest", "intTest") sources {
} excludedSourceSets.addAll(
} "aot", "e2eTest", "intTest"
)
koverReport { }
filters { }
excludes {
packages( reports {
"dev.usbharu.hideout.activitypub.domain.exception", filters {
"dev.usbharu.hideout.core.domain.exception", excludes {
"dev.usbharu.hideout.core.domain.exception.media", packages(
"dev.usbharu.hideout.core.domain.exception.resource", "dev.usbharu.hideout.activitypub.domain.exception",
"dev.usbharu.hideout.core.domain.exception.resource.local" "dev.usbharu.hideout.core.domain.exception",
) "dev.usbharu.hideout.core.domain.exception.media",
annotatedBy("org.springframework.context.annotation.Configuration") "dev.usbharu.hideout.core.domain.exception.resource",
annotatedBy("org.springframework.boot.context.properties.ConfigurationProperties") "dev.usbharu.hideout.core.domain.exception.resource.local"
packages( )
"dev.usbharu.hideout.controller.mastodon.generated", annotatedBy("org.springframework.context.annotation.Configuration")
"dev.usbharu.hideout.domain.mastodon.model.generated" annotatedBy("org.springframework.boot.context.properties.ConfigurationProperties")
) packages(
packages("org.springframework") "dev.usbharu.hideout.controller.mastodon.generated",
packages("org.jetbrains") "dev.usbharu.hideout.domain.mastodon.model.generated"
)
packages("org.springframework")
packages("org.jetbrains")
}
} }
} }
} }

View File

@ -87,6 +87,6 @@ kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
spring-boot = { id = "org.springframework.boot", version = "3.2.5" } spring-boot = { id = "org.springframework.boot", version = "3.2.5" }
detekt = { id = "io.gitlab.arturbosch.detekt", version.ref = "detekt" } detekt = { id = "io.gitlab.arturbosch.detekt", version.ref = "detekt" }
kotlin-spring = { id = "org.jetbrains.kotlin.plugin.spring", version.ref = "kotlin" } kotlin-spring = { id = "org.jetbrains.kotlin.plugin.spring", version.ref = "kotlin" }
kover = { id = "org.jetbrains.kotlinx.kover", version = "0.7.6" } kover = { id = "org.jetbrains.kotlinx.kover", version = "0.8.0" }
openapi-generator = { id = "org.openapi.generator", version = "7.4.0" } openapi-generator = { id = "org.openapi.generator", version = "7.4.0" }
license-report = { id = "com.github.jk1.dependency-license-report", version = "2.7" } license-report = { id = "com.github.jk1.dependency-license-report", version = "2.7" }