Skip to content

Commit

Permalink
Release 0.8.2
Browse files Browse the repository at this point in the history
PR #649
  • Loading branch information
shanshin authored Jun 27, 2024
1 parent 67c7836 commit 82a65bc
Show file tree
Hide file tree
Showing 22 changed files with 56 additions and 35 deletions.
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
```
</details>
Expand All @@ -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'
}
```
</details>
Expand All @@ -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")
}
}

Expand All @@ -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'
}
}
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion kover-gradle-plugin/docs/aggregated.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.**
Expand Down
16 changes: 8 additions & 8 deletions kover-gradle-plugin/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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"
}
```

Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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"
}
```

Expand All @@ -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")
}
}

Expand All @@ -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'
}
}
Expand Down
2 changes: 1 addition & 1 deletion kover-gradle-plugin/docs/migrations/migration-to-0.8.0.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion kover-gradle-plugin/examples/jvm/merged/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion kover-gradle-plugin/examples/jvm/single/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion kover-jvm-agent/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:<path_to_agent_jar>=file:<path_to_settings_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.
Expand Down
6 changes: 3 additions & 3 deletions kover-offline-runtime/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"))
}
Expand Down
4 changes: 2 additions & 2 deletions kover-offline-runtime/examples/runtime-api/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
}
Expand Down

0 comments on commit 82a65bc

Please sign in to comment.