Skip to content

Redundant dependsOn edges between Kotlin Source Sets when default hierarchy is applied #25

Closed as not planned
@qurbonzoda

Description

@qurbonzoda

The infra plugin adds the following dependsOn edges:

  • nativeMain.dependsOn(commonMain)
  • nativeTest.dependsOn(commonTest)

even if the plugin is applied to a project with the default target hierarchy. This leads to a warning during the configuration phase of the Gradle project.

The dependsOn edges are added here: https://github.com/Kotlin/kotlinx.team.infra/blob/master/main/src/kotlinx/team/infra/NativeMultiplatform.kt#L51-L52

Note that they are added even if a project does not set up its native targets using the infra plugin.

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