k-new-mpp-samples icon indicating copy to clipboard operation
k-new-mpp-samples copied to clipboard

publishing expected module without actuals

Open nbransby opened this issue 7 years ago • 0 comments

It is possible to publish a common only library with expect statements without any targets or actuals?

Then client projects can depend on this library and implement the actuals.

If its possible could you add an example?

I did attempt this and a project without any targets compiles without error but depending on that library gives:

Unable to find a matching configuration of com.example:lib:0.0.1: Configuration 'metadata-api': - Found artifactType 'jar' but wasn't required. - Found org.gradle.status 'release' but wasn't required. - Required org.gradle.usage 'java-api' and found compatible value 'java-api'. - Required org.jetbrains.kotlin.platform.type 'jvm' and found incompatible value 'common'.

nbransby avatar Sep 06 '18 10:09 nbransby