Sam
12/03/2018, 6:23 PMh0tk3y
12/03/2018, 7:24 PMrusshwolf
12/03/2018, 8:09 PMSam
12/03/2018, 9:36 PMh0tk3y
12/04/2018, 3:15 PMdigital.wup.android-maven-publish
plugin indeed doesn't seem to work well in a multiplatform project. I could, however, make it publish my AAR from a sample MPP as follows:
apply plugin: 'digital.wup.android-maven-publish'
publishing {
publications {
mavenAar(MavenPublication) {
artifactId = project.name + "-" + kotlin.targets.androidLib.name.toLowerCase()
from components.android
artifacts.removeAll(artifacts.matching { !it.file.name.endsWith('aar') })
}
}
}
The artifacts part removes the JARs built for the other platforms that the plugin adds to the publication for some reason.Jonas Bark
12/04/2018, 8:00 PMh0tk3y
12/04/2018, 8:01 PM