adept-dm / adept

Adept - the predictable dependency management system
171 stars 10 forks source link

Implement add/local-publish variants #45

Open freekh opened 10 years ago

freekh commented 10 years ago

Tentative API call:

repository.pull()
val gitFiles = adept.localPublish(variants, repository, artifacts = Set(new File("/Users/awesomeperson/Projects/myproject")))
repository.add(gitFiles)
repository.commit("A new release of my awesome project!")
freekh commented 10 years ago

Changed to:

def localPublish(variant: Variant, context: Set[ContextValue], repository: GitRepository, artifacts: Set[File]): Set[File] = {

because we must write context as well, and it is per variant.

Single variant publish is also more composable.