scala - Publish artifact with custom classifier in sbt -


in sbt there few custom classifier types built-in super easy use.

for example specifying publishartifact in test := true in build file automatically generates artifact 'test' classifier sources appear in 'test' directory of project.

similarly using publishartifact in integrationtest := true generates artifact 'it' classifier sources appear in 'it' directory of project.

both of these depend on compile phase.

i'd add new type of classifier in style, e.g. publishartifact in customclassifier := true, takes sources given directory, , depend on compile phase.

from research seems possible, can find snippets of code can't quite piece together. it'd great have 1 complete example.


Comments