Closed hfhbd closed 2 years ago
This is working as expected, although it's not very intuitive. There are no published artifacts for the Kotlin stdlib for native targets (see https://search.maven.org/search?q=g:org.jetbrains.kotlin%20kotlin-stdlib). Instead, the Kotlin/Native compiler is responsible for injecting the stdlib directly. You could file a feature request on Kotlin for publishing empty artifacts so that tools like this one and others which validate aspects of the dependency graph still mostly work, but I don't want to specifically special-case this setup.
Thanks for the explanation. I don't expect a special handling in this tool but would like to see uploaded empty artifacts to have the possibility to analyze the dependencies for Kotlin native too, with other tools too. https://youtrack.jetbrains.com/issue/KT-53185/Kotlin-Native-Publish-empty-artifacts-and-pom-information
I know this is a very very rare case, so feel free to close it if you don't see a useful use-case.
The artifact.json file is empty, so the licensee task succeeds:
But the default std lib is missing, so the warning
Allowed SPDX identifier 'Apache-2.0' is unused
is printed. Using thejvm
works as expected: