When I have a directive to build android artifacts...
# multiplatform
o
When I have a directive to build android artifacts like
Copy code
val androidMain by getting {}
What is the name of the artifact in maven? For example for
kotlin-logging
I would expect
kotlin-logging-android
. Is that correct?
s
Correct. By default it will have 2 variants. If root project’s name is
kotlin-logging
then Android artifacts would be:
kotlin-logging-android
kotlin-logging-android-debug
o
Probably something is wrong with my config. No errors but the artifacts are not published: https://github.com/oshai/kotlin-logging/blob/master/build.gradle.kts
s
I am not sure but I think you will need to specify variant names in the Android target block. That’s currently missing in the buildscript. Check this once: https://kotlinlang.org/docs/multiplatform-publish-lib.html#publish-an-android-library
o
Thanks! will try that