Skip to content

Using plugin:org.jetbrains.kotlin.jvm.abi:treatInternalAsPrivate=true breaks Associates #1250

Closed
@rbeazleyspot

Description

@rbeazleyspot

An associates target[JavaInfo].compile_jars are used as the values for the kotlinc --kotlin_friend_paths argument. This works today because previous to the generation of ABI jars this would have just been the direct outputs of the associated target. When ABI jars are enabled the generated JARS replace the compile_jars property, however these JARS still contain internal declarations.

However this association mechanism breaks when -P plugin:org.jetbrains.kotlin.jvm.abi:treatInternalAsPrivate=true and -P plugin:org.jetbrains.kotlin.jvm.abi:removePrivateClasses=true are used as internal declarations are now excluded from the ABI jar.

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