https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
o

oshai

02/11/2023, 11:12 AM
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

Swapnil Madavi

02/11/2023, 12:58 PM
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

oshai

02/11/2023, 1:01 PM
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

Swapnil Madavi

02/11/2023, 1:45 PM
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

oshai

02/11/2023, 4:18 PM
Thanks! will try that
7 Views