shahroz
10/27/2022, 5:01 PMbuild.gradle
file doesn't have an artifact-id
the library that gets published works fine.
Without artifactId
group = "io.data.shared"
version = "1.0"
my content of my maven repo looks like this (which is fine):
5206 Oct 27 21:42 shared-android-1.0-sources.jar
10971 Oct 27 21:42 shared-android-1.0.aar
8813 Oct 27 21:42 shared-android-1.0.module
6831 Oct 27 21:42 shared-android-1.0.pom
With artifact Id
publishing {
publications {
create<MavenPublication>("maven") {
groupId = "io.data.android"
artifactId = "shared"
version = "1.0.0"
}
}
}
my content of my maven repo looks like this (which isn't android specific):
shared-1.0.0-kotlin-tooling-metadata.json
shared-1.0.0-sources.jar
shared-1.0.0.jar
shared-1.0.0.module
shared-1.0.0.pom
Jeff Lockhart
10/27/2022, 7:05 PMkotlin {
android {
publishAllLibraryVariants()
// or e.g.
publishLibraryVariants("release")
}
}
Trey
10/27/2022, 7:15 PMJeff Lockhart
10/27/2022, 7:44 PMshahroz
10/27/2022, 8:41 PMkotlin {
android {
publishLibraryVariants("release", "debug")
}
}