diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d2c0e68..b0edadeb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,62 @@ +0.8.0 / 2024-05-15 +=================== +This release introduces DSL rework to simplify the work with Android build variants, adds the possibility of lazy configuration, allows for the creation of custom report variants, and expands the ability of reports filtering. + +It is incompatible with the previous version, and we provide best-effort migration assistance as well as the [migration guide](/~https://github.com/Kotlin/kotlinx-kover/blob/v0.8.0/docs/gradle-plugin/migrations/migration-to-0.8.0.md). + +## Kover Gradle Plugin +### Features +* [`#461`](/~https://github.com/Kotlin/kotlinx-kover/issues/461) Implemented DSL revision 4 +* [`#410`](/~https://github.com/Kotlin/kotlinx-kover/issues/410) Add possibility of lazy configuration of Kover extensions +* [`#462`](/~https://github.com/Kotlin/kotlinx-kover/issues/462) Redesign the concept of default reports +* [`#463`](/~https://github.com/Kotlin/kotlinx-kover/issues/463) Add the ability to create custom report variants +* [`#338`](/~https://github.com/Kotlin/kotlinx-kover/issues/338) Create an interface for Kover tasks +* [`#66`](/~https://github.com/Kotlin/kotlinx-kover/issues/66) Added support for the publishing plugin to Gradle Plugin Portal +* [`#466`](/~https://github.com/Kotlin/kotlinx-kover/issues/466) Implemented multi-project shortcuts +* [`#339`](/~https://github.com/Kotlin/kotlinx-kover/issues/339) Implemented warn on verification error +* [`#572`](/~https://github.com/Kotlin/kotlinx-kover/issues/572) Added DslMarker to Kover public interfaces +* [`#570`](/~https://github.com/Kotlin/kotlinx-kover/issues/570) Added overload for functions of KoverVariantCreateConfig +* [`#590`](/~https://github.com/Kotlin/kotlinx-kover/issues/590) Expose reportDir property in KoverHtmlReport interface +* [`#587`](/~https://github.com/Kotlin/kotlinx-kover/issues/587) Added property variantName to KoverReport interface +* [`#584`](/~https://github.com/Kotlin/kotlinx-kover/issues/584) Added project filter for reports +* [`#274`](/~https://github.com/Kotlin/kotlinx-kover/issues/274) Allow for classes to be Included by annotation +* [`#454`](/~https://github.com/Kotlin/kotlinx-kover/issues/454) Added a report filter by parent class or interface +### Bugfixes +* [`#557`](/~https://github.com/Kotlin/kotlinx-kover/issues/557) Changed log level for print coverage task +* [`#520`](/~https://github.com/Kotlin/kotlinx-kover/issues/520) Fixed error: Kover requires extension with name 'androidComponents' + +### Internal features +* [`#567`](/~https://github.com/Kotlin/kotlinx-kover/issues/567) Used compile dependency to Kover Features in Kover Gradle Plugin +### Documentation +* [`#531`](/~https://github.com/Kotlin/kotlinx-kover/issues/531) Added explanations about applying of the plugin +* [`#486`](/~https://github.com/Kotlin/kotlinx-kover/issues/486) Increased the readability of the Kover documentation + +## Kover JVM Agent +### Features +* [`#464`](/~https://github.com/Kotlin/kotlinx-kover/issues/464) Repacked the intellij-agent artifact to kover-jvm-agent + +### Bugfixes +* [`#583`](/~https://github.com/Kotlin/kotlinx-kover/issues/583) Excluded from report companion objects with only constants +* [`#548`](/~https://github.com/Kotlin/kotlinx-kover/issues/548) Fixed coverage drop in case of using different classloaders for same class + +## Changelog relative to version `0.8.0-Beta2` +### Kover Gradle Plugin +#### Features +* [`#590`](/~https://github.com/Kotlin/kotlinx-kover/issues/590) Expose reportDir property in KoverHtmlReport interface +* [`#587`](/~https://github.com/Kotlin/kotlinx-kover/issues/587) Added property variantName to KoverReport interface +* [`#584`](/~https://github.com/Kotlin/kotlinx-kover/issues/584) Added project filter for reports +* [`#274`](/~https://github.com/Kotlin/kotlinx-kover/issues/274) Allow for classes to be Included by annotation +* [`#454`](/~https://github.com/Kotlin/kotlinx-kover/issues/454) Added a report filter by parent class or interface + +#### Documentation +* [`#486`](/~https://github.com/Kotlin/kotlinx-kover/issues/486) Increased the readability of the Kover documentation for 0.8.0 + +### Kover JVM Agent +#### Bugfixes +* [`#583`](/~https://github.com/Kotlin/kotlinx-kover/issues/583) Excluded from report companion objects with only constants +* [`#548`](/~https://github.com/Kotlin/kotlinx-kover/issues/548) Fixed coverage drop in case of using different classloaders for same class + + 0.8.0-Beta2 / 2024-03-28 =================== ## Kover Gradle Plugin diff --git a/gradle.properties b/gradle.properties index d8486e0c..a4bab490 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,6 +1,6 @@ -version=0.8.0-SNAPSHOT +version=0.8.1-SNAPSHOT group=org.jetbrains.kotlinx # version of the latest release -kover.release.version=0.8.0-Beta2 +kover.release.version=0.8.0 kotlin.code.style=official diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 2d9caa9a..9a3c3a90 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,6 +1,6 @@ [versions] -intellij-coverage = "1.0.753" +intellij-coverage = "1.0.754" junit = "5.9.0" kotlinx-bcv = "0.13.2" kotlinx-dokka = "1.8.10" diff --git a/kover-gradle-plugin/examples/android/dynamic/build.gradle.kts b/kover-gradle-plugin/examples/android/dynamic/build.gradle.kts index 0e64995a..389e2640 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.0-Beta2" apply false + id("org.jetbrains.kotlinx.kover") version "0.8.0" 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 06482e70..4e121983 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.0-Beta2" apply false + id("org.jetbrains.kotlinx.kover") version "0.8.0" 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 c3fa2a15..7d4fa9c2 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.0-Beta2' apply false + id 'org.jetbrains.kotlinx.kover' version '0.8.0' 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 06482e70..4e121983 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.0-Beta2" apply false + id("org.jetbrains.kotlinx.kover") version "0.8.0" 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 1bbe813b..f8d55ebb 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.0-Beta2" + id("org.jetbrains.kotlinx.kover") version "0.8.0" } 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 8d8df1c8..a90736f0 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.0-Beta2" + id("org.jetbrains.kotlinx.kover") version "0.8.0" } dependencies { diff --git a/kover-gradle-plugin/examples/android/multiproject/build.gradle.kts b/kover-gradle-plugin/examples/android/multiproject/build.gradle.kts index 06482e70..4e121983 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.0-Beta2" apply false + id("org.jetbrains.kotlinx.kover") version "0.8.0" 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 06482e70..4e121983 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.0-Beta2" apply false + id("org.jetbrains.kotlinx.kover") version "0.8.0" 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 b7b80e4b..cdb86e18 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.0-Beta2" + id("org.jetbrains.kotlinx.kover") version "0.8.0" } dependencies { diff --git a/kover-gradle-plugin/examples/jvm/merged/build.gradle.kts b/kover-gradle-plugin/examples/jvm/merged/build.gradle.kts index 99caf51f..076db869 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.0-Beta2" + id("org.jetbrains.kotlinx.kover") version "0.8.0" } 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 323c8b3e..7d5ff2f2 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.0-Beta2" + id("org.jetbrains.kotlinx.kover") version "0.8.0" } kotlin { diff --git a/kover-gradle-plugin/examples/jvm/single/build.gradle.kts b/kover-gradle-plugin/examples/jvm/single/build.gradle.kts index 7ddb6682..96c0d512 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.0-Beta2" + id("org.jetbrains.kotlinx.kover") version "0.8.0" } dependencies { diff --git a/kover-gradle-plugin/src/main/kotlin/kotlinx/kover/gradle/plugin/dsl/KoverVersions.kt b/kover-gradle-plugin/src/main/kotlin/kotlinx/kover/gradle/plugin/dsl/KoverVersions.kt index 42ad7706..a817ca4a 100644 --- a/kover-gradle-plugin/src/main/kotlin/kotlinx/kover/gradle/plugin/dsl/KoverVersions.kt +++ b/kover-gradle-plugin/src/main/kotlin/kotlinx/kover/gradle/plugin/dsl/KoverVersions.kt @@ -17,7 +17,7 @@ public object KoverVersions { /** * Kover coverage tool version. */ - public const val KOVER_TOOL_VERSION = "1.0.753" + public const val KOVER_TOOL_VERSION = "1.0.754" /** * JaCoCo coverage tool version used by default. diff --git a/kover-offline-runtime/examples/runtime-api/build.gradle.kts b/kover-offline-runtime/examples/runtime-api/build.gradle.kts index 39d1e58e..5006079d 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.0-Beta2") + add("koverCli", "org.jetbrains.kotlinx:kover-cli:0.8.0") - implementation("org.jetbrains.kotlinx:kover-offline-runtime:0.8.0-Beta2") + implementation("org.jetbrains.kotlinx:kover-offline-runtime:0.8.0") testImplementation(kotlin("test")) }