your packages, delivered fresh
A scala interface for the bintray api.
add the following to your sbt build definition
libraryDependencies += "me.lessis" %% "bintry" % "0.1.2"using ls
ls-install bintry
import bintry._, dispatch._, dispatch.Defaults._, org.json4s._
val bty = Client(user, apikey)
val repo = bty.repo(user, "generic")repo.createPackage("my-awesome-package",
"description of my awesome package",
Seq("MIT"))(as.json4s.Json)repo.get("my-awesome-package").createVersion("0.1.0")(as.json4s.Json)repo.get("my-awesome-package").version("0.1.0")
.upload("/baz", file("foo_2.10"),
publish = true)(as.json4s.Json)You can assign typed metadata as attributes to packages and versions.
Bintray expects these to be of type string, date, number, boolean or version. Bintry exposes these types as
StringAttr(stringVal), DateAttr(java.util.Date), IntAttr(intVal), BooleanAttr(boolVal) and VersionAttr(stringVal) respectively.
Doug Tangren (softprops) 2013