Skip to content

jsuereth/bintry

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bintry

your packages, delivered fresh

A scala interface for the bintray api.

install

copy and paste method

add the following to your sbt build definition

libraryDependencies += "me.lessis" %% "bintry" % "0.1.2"

civilized method

using ls

ls-install bintry

usage

import bintry._, dispatch._, dispatch.Defaults._, org.json4s._
val bty = Client(user, apikey)
val repo = bty.repo(user, "generic")

create a package

repo.createPackage("my-awesome-package",
                   "description of my awesome package",
                   Seq("MIT"))(as.json4s.Json)

create a version

repo.get("my-awesome-package").createVersion("0.1.0")(as.json4s.Json)

upload & publish it

repo.get("my-awesome-package").version("0.1.0")
               .upload("/baz", file("foo_2.10"),
                      publish = true)(as.json4s.Json)

metadata

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

About

your packages, delivered fresh

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Scala 100.0%