From 82a65bc59a57a1cc85bfdf94a97b1a7b48bf8df8 Mon Sep 17 00:00:00 2001 From: Sergey Shanshin Date: Thu, 27 Jun 2024 20:11:04 +0300 Subject: [PATCH] Release 0.8.2 PR #649 --- CHANGELOG.md | 21 +++++++++++++++++++ README.md | 8 +++---- gradle.properties | 4 ++-- kover-gradle-plugin/docs/aggregated.md | 2 +- kover-gradle-plugin/docs/index.md | 16 +++++++------- .../docs/migrations/migration-to-0.8.0.md | 2 +- .../examples/android/dynamic/build.gradle.kts | 2 +- .../examples/android/flavors/build.gradle.kts | 2 +- .../android/minimal_groovy/build.gradle | 2 +- .../android/minimal_kts/build.gradle.kts | 2 +- .../android/multiplatform/build.gradle.kts | 2 +- .../multiproject-custom/build.gradle.kts | 2 +- .../android/multiproject/build.gradle.kts | 2 +- .../android/variantUsage/build.gradle.kts | 2 +- .../android/with-jvm/build.gradle.kts | 2 +- .../jvm/copy-variant/build.gradle.kts | 2 +- .../examples/jvm/merged/build.gradle.kts | 2 +- .../examples/jvm/single-kmp/build.gradle.kts | 2 +- .../examples/jvm/single/build.gradle.kts | 2 +- kover-jvm-agent/docs/index.md | 2 +- kover-offline-runtime/docs/index.md | 6 +++--- .../examples/runtime-api/build.gradle.kts | 4 ++-- 22 files changed, 56 insertions(+), 35 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6975e507..596f384f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,24 @@ +0.8.2 / 2024-06-27 +=================== +## Kover Aggregation Plugin +Implemented prototype of Kover Aggregation Plugin - an alternative to the existing Kover Gradle Plugin, it makes it easier to set up a configuration and collect coverage reactively, depending on the compilation and test tasks running. + +**This is not a production-ready plugin, it is in an incubation state.** + +Please refer to the [GitHub issue](https://github.com/Kotlin/kotlinx-kover/issues/608) and [documentation](https://kotlin.github.io/kotlinx-kover/gradle-plugin/aggregated.html) for details. + +## Kover Gradle Plugin +### Bugfixes +* [`#621`](https://github.com/Kotlin/kotlinx-kover/issues/621) Fixed coverage evaluation for enum in K2 +* [`#633`](https://github.com/Kotlin/kotlinx-kover/issues/633) Fix issue with identical cache keys between projects +* [`#613`](https://github.com/Kotlin/kotlinx-kover/issues/613) Fixed JaCoCo error: Can't add different class with same name +* [`#601`](https://github.com/Kotlin/kotlinx-kover/issues/601) Fixed support of Compose functions +* [`#646`](https://github.com/Kotlin/kotlinx-kover/issues/646) Fixed reusing of configuration cache +* [`#628`](https://github.com/Kotlin/kotlinx-kover/issues/628) Fixed coverage evaluation of try-finally and try-with-resources for Java code + +### Features +* Disable caching on kover artifact tasks + 0.8.1 / 2024-06-07 =================== ## Kover Gradle Plugin diff --git a/README.md b/README.md index a08f7928..19dc5a38 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ Add the following to your top-level build file: ```kotlin plugins { - id("org.jetbrains.kotlinx.kover") version "0.8.1" + id("org.jetbrains.kotlinx.kover") version "0.8.2" } ``` @@ -48,7 +48,7 @@ plugins { ```groovy plugins { - id 'org.jetbrains.kotlinx.kover' version '0.8.1' + id 'org.jetbrains.kotlinx.kover' version '0.8.2' } ``` @@ -73,7 +73,7 @@ buildscript { } dependencies { - classpath("org.jetbrains.kotlinx:kover-gradle-plugin:0.8.1") + classpath("org.jetbrains.kotlinx:kover-gradle-plugin:0.8.2") } } @@ -92,7 +92,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'org.jetbrains.kotlinx:kover-gradle-plugin:0.8.1' + classpath 'org.jetbrains.kotlinx:kover-gradle-plugin:0.8.2' } } diff --git a/gradle.properties b/gradle.properties index 6399a40a..f4573801 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,6 +1,6 @@ -version=0.8.2-SNAPSHOT +version=0.8.3-SNAPSHOT group=org.jetbrains.kotlinx # version of the latest release -kover.release.version=0.8.1 +kover.release.version=0.8.2 kotlin.code.style=official diff --git a/kover-gradle-plugin/docs/aggregated.md b/kover-gradle-plugin/docs/aggregated.md index 27fa9713..eb2ea681 100644 --- a/kover-gradle-plugin/docs/aggregated.md +++ b/kover-gradle-plugin/docs/aggregated.md @@ -8,7 +8,7 @@ The main difference from the existing Kover Gradle Plugin is the reactive conten To use the plugin, just add into a `settings.gradle.kts` file ```kotlin plugins { - id("org.jetbrains.kotlinx.kover.aggregation") version "0.8.1" + id("org.jetbrains.kotlinx.kover.aggregation") version "0.8.2" } ``` **There is no need to apply Kover plugin in other places, the `org.jetbrains.kotlinx.kover` plug-in should not be applied anywhere.** diff --git a/kover-gradle-plugin/docs/index.md b/kover-gradle-plugin/docs/index.md index 781b07d2..0481244b 100644 --- a/kover-gradle-plugin/docs/index.md +++ b/kover-gradle-plugin/docs/index.md @@ -55,7 +55,7 @@ Add the following to your build file: ```kotlin plugins { - id("org.jetbrains.kotlinx.kover") version "0.8.1" + id("org.jetbrains.kotlinx.kover") version "0.8.2" } ``` For more information about application of the plugin, refer to the [relevant section](#apply-kover-gradle-plugin-in-project) @@ -127,7 +127,7 @@ Add the following line to build file in each module of your Gradle build: ```kotlin plugins { - id("org.jetbrains.kotlinx.kover") version "0.8.1" + id("org.jetbrains.kotlinx.kover") version "0.8.2" } ``` It is recommended to apply the Kover Plugin in the root module, even if there is no source code or tests there. @@ -225,7 +225,7 @@ Otherwise, the use of the plugin is identical to the use in the [multi-module Ko Add the following to the build file only in the `app` module of your Gradle build: ```kotlin plugins { - id("org.jetbrains.kotlinx.kover") version "0.8.1" + id("org.jetbrains.kotlinx.kover") version "0.8.2" } ``` @@ -378,7 +378,7 @@ Add the following to build file in each module of your Gradle build: ```kotlin plugins { - id("org.jetbrains.kotlinx.kover") version "0.8.1" + id("org.jetbrains.kotlinx.kover") version "0.8.2" } ``` It is recommended to apply the Kover Plugin in the root module, even if there is no source code or tests there. @@ -582,7 +582,7 @@ Add the following to build file in each module of your Gradle build: ```kotlin plugins { - id("org.jetbrains.kotlinx.kover") version "0.8.1" + id("org.jetbrains.kotlinx.kover") version "0.8.2" } ``` It is recommended to apply the Kover Plugin in the root module, even if there is no source code or tests there. @@ -759,7 +759,7 @@ Add the following to your build file: ```kotlin plugins { - id("org.jetbrains.kotlinx.kover") version "0.8.1" + id("org.jetbrains.kotlinx.kover") version "0.8.2" } ``` @@ -777,7 +777,7 @@ buildscript { } dependencies { - classpath("org.jetbrains.kotlinx:kover-gradle-plugin:0.8.1") + classpath("org.jetbrains.kotlinx:kover-gradle-plugin:0.8.2") } } @@ -793,7 +793,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'org.jetbrains.kotlinx:kover-gradle-plugin:0.8.1' + classpath 'org.jetbrains.kotlinx:kover-gradle-plugin:0.8.2' } } diff --git a/kover-gradle-plugin/docs/migrations/migration-to-0.8.0.md b/kover-gradle-plugin/docs/migrations/migration-to-0.8.0.md index 803b1056..56987f31 100644 --- a/kover-gradle-plugin/docs/migrations/migration-to-0.8.0.md +++ b/kover-gradle-plugin/docs/migrations/migration-to-0.8.0.md @@ -1,4 +1,4 @@ -# Kover migration guide from 0.7.x to 0.8.1 +# Kover migration guide from 0.7.x to 0.8.2 - [Migration steps](#migration-steps) - [Conceptual changes](#conceptual-changes) diff --git a/kover-gradle-plugin/examples/android/dynamic/build.gradle.kts b/kover-gradle-plugin/examples/android/dynamic/build.gradle.kts index fef9c296..5467d05b 100644 --- a/kover-gradle-plugin/examples/android/dynamic/build.gradle.kts +++ b/kover-gradle-plugin/examples/android/dynamic/build.gradle.kts @@ -3,5 +3,5 @@ plugins { id("com.android.library") version "7.4.0" apply false id ("com.android.dynamic-feature") version "7.4.0" apply false id("org.jetbrains.kotlin.android") version "1.8.20" apply false - id("org.jetbrains.kotlinx.kover") version "0.8.1" apply false + id("org.jetbrains.kotlinx.kover") version "0.8.2" apply false } diff --git a/kover-gradle-plugin/examples/android/flavors/build.gradle.kts b/kover-gradle-plugin/examples/android/flavors/build.gradle.kts index 41444a3b..87362aae 100644 --- a/kover-gradle-plugin/examples/android/flavors/build.gradle.kts +++ b/kover-gradle-plugin/examples/android/flavors/build.gradle.kts @@ -2,5 +2,5 @@ plugins { id("com.android.application") version "7.4.0" apply false id("com.android.library") version "7.4.0" apply false id("org.jetbrains.kotlin.android") version "1.8.20" apply false - id("org.jetbrains.kotlinx.kover") version "0.8.1" apply false + id("org.jetbrains.kotlinx.kover") version "0.8.2" apply false } diff --git a/kover-gradle-plugin/examples/android/minimal_groovy/build.gradle b/kover-gradle-plugin/examples/android/minimal_groovy/build.gradle index 28085570..adcedf04 100644 --- a/kover-gradle-plugin/examples/android/minimal_groovy/build.gradle +++ b/kover-gradle-plugin/examples/android/minimal_groovy/build.gradle @@ -2,5 +2,5 @@ plugins { id 'com.android.application' version '7.4.0' apply false id 'com.android.library' version '7.4.0' apply false id 'org.jetbrains.kotlin.android' version '1.8.20' apply false - id 'org.jetbrains.kotlinx.kover' version '0.8.1' apply false + id 'org.jetbrains.kotlinx.kover' version '0.8.2' apply false } diff --git a/kover-gradle-plugin/examples/android/minimal_kts/build.gradle.kts b/kover-gradle-plugin/examples/android/minimal_kts/build.gradle.kts index 41444a3b..87362aae 100644 --- a/kover-gradle-plugin/examples/android/minimal_kts/build.gradle.kts +++ b/kover-gradle-plugin/examples/android/minimal_kts/build.gradle.kts @@ -2,5 +2,5 @@ plugins { id("com.android.application") version "7.4.0" apply false id("com.android.library") version "7.4.0" apply false id("org.jetbrains.kotlin.android") version "1.8.20" apply false - id("org.jetbrains.kotlinx.kover") version "0.8.1" apply false + id("org.jetbrains.kotlinx.kover") version "0.8.2" apply false } diff --git a/kover-gradle-plugin/examples/android/multiplatform/build.gradle.kts b/kover-gradle-plugin/examples/android/multiplatform/build.gradle.kts index 5f490a74..ba0e5471 100644 --- a/kover-gradle-plugin/examples/android/multiplatform/build.gradle.kts +++ b/kover-gradle-plugin/examples/android/multiplatform/build.gradle.kts @@ -2,7 +2,7 @@ plugins { id("com.android.application") version "7.4.0" apply false id("com.android.library") version "7.4.0" apply false kotlin("multiplatform") version ("1.8.20") apply false - id("org.jetbrains.kotlinx.kover") version "0.8.1" + id("org.jetbrains.kotlinx.kover") version "0.8.2" } dependencies { diff --git a/kover-gradle-plugin/examples/android/multiproject-custom/build.gradle.kts b/kover-gradle-plugin/examples/android/multiproject-custom/build.gradle.kts index 371b4448..12734967 100644 --- a/kover-gradle-plugin/examples/android/multiproject-custom/build.gradle.kts +++ b/kover-gradle-plugin/examples/android/multiproject-custom/build.gradle.kts @@ -2,7 +2,7 @@ plugins { id("com.android.application") version "7.4.0" apply false id("com.android.library") version "7.4.0" apply false id("org.jetbrains.kotlin.android") version "1.8.20" apply false - id("org.jetbrains.kotlinx.kover") version "0.8.1" + id("org.jetbrains.kotlinx.kover") version "0.8.2" } dependencies { diff --git a/kover-gradle-plugin/examples/android/multiproject/build.gradle.kts b/kover-gradle-plugin/examples/android/multiproject/build.gradle.kts index 41444a3b..87362aae 100644 --- a/kover-gradle-plugin/examples/android/multiproject/build.gradle.kts +++ b/kover-gradle-plugin/examples/android/multiproject/build.gradle.kts @@ -2,5 +2,5 @@ plugins { id("com.android.application") version "7.4.0" apply false id("com.android.library") version "7.4.0" apply false id("org.jetbrains.kotlin.android") version "1.8.20" apply false - id("org.jetbrains.kotlinx.kover") version "0.8.1" apply false + id("org.jetbrains.kotlinx.kover") version "0.8.2" apply false } diff --git a/kover-gradle-plugin/examples/android/variantUsage/build.gradle.kts b/kover-gradle-plugin/examples/android/variantUsage/build.gradle.kts index 41444a3b..87362aae 100644 --- a/kover-gradle-plugin/examples/android/variantUsage/build.gradle.kts +++ b/kover-gradle-plugin/examples/android/variantUsage/build.gradle.kts @@ -2,5 +2,5 @@ plugins { id("com.android.application") version "7.4.0" apply false id("com.android.library") version "7.4.0" apply false id("org.jetbrains.kotlin.android") version "1.8.20" apply false - id("org.jetbrains.kotlinx.kover") version "0.8.1" apply false + id("org.jetbrains.kotlinx.kover") version "0.8.2" apply false } diff --git a/kover-gradle-plugin/examples/android/with-jvm/build.gradle.kts b/kover-gradle-plugin/examples/android/with-jvm/build.gradle.kts index 8794caef..5b79d78b 100644 --- a/kover-gradle-plugin/examples/android/with-jvm/build.gradle.kts +++ b/kover-gradle-plugin/examples/android/with-jvm/build.gradle.kts @@ -3,7 +3,7 @@ plugins { id("com.android.library") version "7.4.0" apply false kotlin("android") version "1.8.20" apply false kotlin("jvm") version "1.8.20" apply false - id("org.jetbrains.kotlinx.kover") version "0.8.1" + id("org.jetbrains.kotlinx.kover") version "0.8.2" } dependencies { diff --git a/kover-gradle-plugin/examples/jvm/copy-variant/build.gradle.kts b/kover-gradle-plugin/examples/jvm/copy-variant/build.gradle.kts index 64525beb..baf869be 100644 --- a/kover-gradle-plugin/examples/jvm/copy-variant/build.gradle.kts +++ b/kover-gradle-plugin/examples/jvm/copy-variant/build.gradle.kts @@ -1,6 +1,6 @@ plugins { kotlin("jvm") version "1.7.10" - id("org.jetbrains.kotlinx.kover") version "0.8.1" + id("org.jetbrains.kotlinx.kover") version "0.8.2" } dependencies { diff --git a/kover-gradle-plugin/examples/jvm/merged/build.gradle.kts b/kover-gradle-plugin/examples/jvm/merged/build.gradle.kts index 4b5138c1..ecfcb65a 100644 --- a/kover-gradle-plugin/examples/jvm/merged/build.gradle.kts +++ b/kover-gradle-plugin/examples/jvm/merged/build.gradle.kts @@ -1,6 +1,6 @@ plugins { kotlin("jvm") version "1.7.10" - id("org.jetbrains.kotlinx.kover") version "0.8.1" + id("org.jetbrains.kotlinx.kover") version "0.8.2" } dependencies { diff --git a/kover-gradle-plugin/examples/jvm/single-kmp/build.gradle.kts b/kover-gradle-plugin/examples/jvm/single-kmp/build.gradle.kts index dc051a87..30fa5b0c 100644 --- a/kover-gradle-plugin/examples/jvm/single-kmp/build.gradle.kts +++ b/kover-gradle-plugin/examples/jvm/single-kmp/build.gradle.kts @@ -1,6 +1,6 @@ plugins { kotlin("multiplatform") version "1.9.20" - id("org.jetbrains.kotlinx.kover") version "0.8.1" + id("org.jetbrains.kotlinx.kover") version "0.8.2" } kotlin { diff --git a/kover-gradle-plugin/examples/jvm/single/build.gradle.kts b/kover-gradle-plugin/examples/jvm/single/build.gradle.kts index 3ba99052..05b0a018 100644 --- a/kover-gradle-plugin/examples/jvm/single/build.gradle.kts +++ b/kover-gradle-plugin/examples/jvm/single/build.gradle.kts @@ -1,6 +1,6 @@ plugins { kotlin("jvm") version "1.7.10" - id("org.jetbrains.kotlinx.kover") version "0.8.1" + id("org.jetbrains.kotlinx.kover") version "0.8.2" } dependencies { diff --git a/kover-jvm-agent/docs/index.md b/kover-jvm-agent/docs/index.md index 543d85e3..855ebc22 100644 --- a/kover-jvm-agent/docs/index.md +++ b/kover-jvm-agent/docs/index.md @@ -16,7 +16,7 @@ To get a readable coverage report, you need to: 2. Put JVM agent jar file in a local directory (Important! renaming a jar file is not allowed). 3. Create a file with agent arguments, [learn more about the arguments](#kover-jvm-arguments-file). 4. Add an argument to the java application startup command `-javaagent:=file:`. - Example of an application launch command `java -jar application.jar -javaagent:/opt/kover-jvm-agent-0.8.1.jar=file:/tmp/agent.args`. + Example of an application launch command `java -jar application.jar -javaagent:/opt/kover-jvm-agent-0.8.2.jar=file:/tmp/agent.args`. ## Kover JVM arguments file The arguments file is a set of settings, each of which is written on a new line. diff --git a/kover-offline-runtime/docs/index.md b/kover-offline-runtime/docs/index.md index b2d3e74e..17b73f51 100644 --- a/kover-offline-runtime/docs/index.md +++ b/kover-offline-runtime/docs/index.md @@ -20,7 +20,7 @@ must be passed to Kover CLI as arguments, see [Kover CLI](../cli#offline-instrum #### Instrumentation by Kover Features Kover Features is a library that provides capabilities similar to Kover CLI and Kover Gradle plugin. -You can declare a dependency on Kover Features using following coordinates: `org.jetbrains.kotlinx:kover-features-jvm:0.8.1`. +You can declare a dependency on Kover Features using following coordinates: `org.jetbrains.kotlinx:kover-features-jvm:0.8.2`. Then you can use the Kover Features classes to instrument the bytecode of each class: ```kotlin @@ -113,8 +113,8 @@ configurations.register("koverCli") { } dependencies { - runtimeOnly("org.jetbrains.kotlinx:kover-offline-runtime:0.8.1") - add("koverCli", "org.jetbrains.kotlinx:kover-cli:0.8.1") + runtimeOnly("org.jetbrains.kotlinx:kover-offline-runtime:0.8.2") + add("koverCli", "org.jetbrains.kotlinx:kover-cli:0.8.2") testImplementation(kotlin("test")) } diff --git a/kover-offline-runtime/examples/runtime-api/build.gradle.kts b/kover-offline-runtime/examples/runtime-api/build.gradle.kts index c3afb1c9..58d83b51 100644 --- a/kover-offline-runtime/examples/runtime-api/build.gradle.kts +++ b/kover-offline-runtime/examples/runtime-api/build.gradle.kts @@ -16,9 +16,9 @@ configurations.register("koverCli") { } dependencies { - add("koverCli", "org.jetbrains.kotlinx:kover-cli:0.8.1") + add("koverCli", "org.jetbrains.kotlinx:kover-cli:0.8.2") - implementation("org.jetbrains.kotlinx:kover-offline-runtime:0.8.1") + implementation("org.jetbrains.kotlinx:kover-offline-runtime:0.8.2") testImplementation(kotlin("test")) }