Skip to content

stop publishing artifact without version suffix #148

@atais

Description

@atais

maybe its only my wrong configuration, but with

publishing {
    publications {
        register("crossBuildScala_212", MavenPublication::class) {
            artifact(crossBuildScala_212Jar)
        }
        register("crossBuildScala_213", MavenPublication::class) {
            artifact(crossBuildScala_213Jar)
        }
    }
}

I am getting 3 artifacts during publishToMavenLocal

  • allure-scalatest
  • allure-scalatest_2.12
  • allure-scalatest_2.13

i think allure-scalatest should not be published.
I understand that compiled sources might be needed for gradle to work properly, but it should not be propagated to the publish step

you can test this plugin with: https://github.com/atais/allure-java/blob/main/allure-scalatest/build.gradle.kts

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions