Alexey
08/07/2025, 3:16 PMallprojects {
apply(plugin = "com.jfrog.artifactory")
apply(plugin = "maven-publish")
version = "0.9.0-SNAPSHOT"
group = "com.example.app." + rootProject.name.lowercase()
}
tasks.named<ArtifactoryTask>("artifactoryPublish") {
skip = true
}
project("composeApp") {
tasks.named<ArtifactoryTask>("artifactoryPublish") {
dependsOn(":composeApp:assembleRelease")
// dependsOn("build")
}
configure<PublishingExtension> {
val publicationArtifactId = rootProject.name
publications {
register<MavenPublication>("composeApp") {
artifactId = publicationArtifactId
artifact(file("${layout.buildDirectory.get()}/outputs/apk/release/${project.name}-release.apk"))
}
}
}
}
Chrimaeon
08/07/2025, 3:37 PMgroup
in your allprojects
. You probably only want it to change for the publications
Alexey
08/07/2025, 4:10 PMChrimaeon
08/07/2025, 4:19 PMChrimaeon
08/07/2025, 4:24 PMgroupId
in the publication. with group
you just did the same and override the project’s group again.
register<MavenPublication>("composeApp") {
artifactId = publicationArtifactId
groupId = "com.example.app." + rootProject.name.lowercase()
artifact(file("${layout.buildDirectory.get()}/outputs/apk/release/${project.name}-release.apk"))
}
Alexey
08/07/2025, 5:10 PM