Skip to content

JVM/Android-only modules create empty klib.api file on 0.15.0-Beta.3 #246

@colinrtwhite

Description

@colinrtwhite

On 0.15.0-Beta.3, the plugin generates an empty klib.api if the module only supports Android/JVM targets. This causes the binary compatibility check to fail with the error Project ABI file XYZ.klib.api is empty.. The release notes mention adding modules to ignoredProjects, but I believe that also disables checking the android/XYZ.api and jvm/XYZ.api files. I have the new klib validation support enabled with strictValidation = true:

klib {
    enabled = true
    strictValidation = true
}

To reproduce:

Run ./gradlew apiDump and then ./gradlew apiCheck in this project. I can make a smaller repro project if needed.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingklib

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions