How do you remove the _ postfix from artifacts built+published with simple-build-tool?

后端 未结 4 1435
春和景丽
春和景丽 2020-12-23 19:16

I\'m building a few Java-only projects using simple-build-tool. When I publish the artifacts from the projects using, say, sbt publish-local then the resulting artifacts ha

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-23 19:22

    This is documented on the xsbt wiki under Modifying default artifacts. From that page:

    For example, to produce a minimal name without a classifier or cross path:

    artifactName := { (sv: ScalaVersion, module: ModuleID, artifact: Artifact) =>
      artifact.name + "-" + module.revision + "." + artifact.extension
    }
    

提交回复
热议问题