hi everyone, i'm trying to publish apk in jfrog ar...
# multiplatform
a
hi everyone, i'm trying to publish apk in jfrog artifactory, but after i set group com.example.app, my generated compose multiplatofrm resources are erased and generated in another path, after which the build fails, they become available in another path, instead of application.composeapp.generated.resources it turns out com.example.app.application.composeapp.generated.resources
Copy code
allprojects {
    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"))
            }
        }
    }
}
c
You change the
group
in your
allprojects
. You probably only want it to change for the
publications
a
nothing has changed, still the same problem
c
Can you show the new build file?
ah, sorry its
groupId
in the publication. with
group
you just did the same and override the project’s group again.
Copy code
register<MavenPublication>("composeApp") {
                artifactId = publicationArtifactId
                
                groupId = "com.example.app." + rootProject.name.lowercase()
                artifact(file("${layout.buildDirectory.get()}/outputs/apk/release/${project.name}-release.apk"))
            }
a
Thanks, i trying...