Skip to content
This repository has been archived by the owner on Jun 16, 2019. It is now read-only.
/ coursier-small Public archive

This project is no longer needed since the new Coursier library API has gotten a lot nicer --->

License

Notifications You must be signed in to change notification settings

olafurpg/coursier-small

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

coursier-small

Build Status

This project is a small wrapper around the library APIs for Coursier with the objective to provide a stable binary compatible interface.

Goals:

  • never break binary compatibility
  • no transitive dependencies besides scala-library, coursier is shaded into an internal namespace

Non-goals:

  • support the full coursier library API, if you need advanced configuration such as authentication or custom cache locations use Coursier directly.

Usage

Maven Central

// Supports 2.10, 2.11 and 2.12
libraryDependencies += "com.geirsson" %% "coursier-small" % "VERSION"

Then use it like this

import com.geirsson.coursiersmall._
val dependency = new Dependency("com.geirsson", "scalafmt-cli_2.12", "1.5.1")
val settings = new Settings() .withDependencies(List(dependency))
val jars = CoursierSmall.fetch(settings)
// List(~/.coursier/cache/.../scalafmt-cli_2.12-1.5.1.jar, ...)

In case of resolution or file errors, the exceptions ResolutionException or FileException are thrown.

About

This project is no longer needed since the new Coursier library API has gotten a lot nicer --->

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages