From 05ac0fc58789ed5859e7bb26fa268116233e6288 Mon Sep 17 00:00:00 2001 From: Dirk Groot Date: Fri, 31 Mar 2023 09:59:01 +0200 Subject: [PATCH] Update Kover to fix coverage report upload to Codecov --- .github/workflows/build.yml | 2 +- build.gradle.kts | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 62a74e7..dcd52fb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -90,7 +90,7 @@ jobs: - name: Upload Code Coverage Report uses: codecov/codecov-action@v3 with: - files: ${{ github.workspace }}/build/reports/kover/xml/report.xml + files: ${{ github.workspace }}/build/reports/kover/report.xml # Cache Plugin Verifier IDEs - name: Setup Plugin Verifier IDEs Cache diff --git a/build.gradle.kts b/build.gradle.kts index c4416c8..1b53d0c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -9,7 +9,7 @@ plugins { id("org.jetbrains.kotlin.jvm") version "1.8.10" id("org.jetbrains.intellij") version "1.13.3" id("org.jetbrains.changelog") version "2.0.0" - id("org.jetbrains.kotlinx.kover") version "0.6.1" + id("org.jetbrains.kotlinx.kover") version "0.7.0-Alpha" id("org.jetbrains.grammarkit") version "2022.3.1" } @@ -40,8 +40,10 @@ changelog { repositoryUrl.set(properties("pluginRepositoryUrl")) } -kover.xmlReport { - onCheck.set(true) +koverReport { + xml { + onCheck = true + } } sourceSets["main"].java.srcDirs("src/main/gen")