What is a classifier in SBT

后端 未结 2 1255
清酒与你
清酒与你 2021-01-11 14:08

What is meant under the term classifiers? Is it comes from Jars? For example in sbt-assembly plugin:

artifact in (Compile, assembly         


        
2条回答
  •  执笔经年
    2021-01-11 14:52

    In addition to @gourlaysama's answer, see Publishing:

    Published artifacts

    By default, the main binary jar, a sources jar, and a API documentation jar are published. You can declare other types of artifacts to publish and disable or modify the default artifacts. See the Artifacts page for details.

    and Artifacts:

    Defining custom artifacts

    In addition to configuring the built-in artifacts, you can declare other artifacts to publish. Multiple artifacts are allowed when using Ivy metadata, but a Maven POM file only supports distinguishing artifacts based on classifiers and these are not recorded in the POM.

提交回复
热议问题