Skip to content

build: upgrade Kover when a release fixes its use of the deprecated Configuration.setVisible, removed in Gradle 11 #2301

Backlog

Description

@lagergren

What

Every build that doesn't reuse the configuration cache, which is every CI run, prints:

The Configuration.setVisible(boolean) method has been deprecated. This is scheduled to be removed in Gradle 11.
Consult the upgrading guide for further information: https://docs.gradle.org/9.9.2/userguide/upgrading_version_9.html#deprecate-visible-property

Our build script doesn't call it. The Kover plugin does, as it sets up its configurations
(kotlinx.kover.gradle.plugin.commons.ConfigurationsKt.asBucket and asTransitiveDependencies, from
PrepareKover.prepare), five times per build. It's the only deprecation in the build:
./gradlew tasks --all --no-configuration-cache --warning-mode all reports no other, with Gradle 9.9.2.

Upstream

To do

When Kover publishes a release after 0.9.11:

  1. Bump kover in gradle/libs.versions.toml.
  2. Check that ./gradlew tasks --all --no-configuration-cache --warning-mode all prints no deprecation.
  3. Check that CI still uploads build/reports/kover/report.xml to Codecov.

Until then we keep Kover as it is. The warning breaks nothing before Gradle 11.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions