aboutsummaryrefslogtreecommitdiff
path: root/coursier
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2016-03-12 16:06:14 -0500
committerChristopher Vogt <oss.nsp@cvogt.org>2016-03-12 16:06:14 -0500
commit906db6c55289d9aba5da824d5f2f3d2cae70813e (patch)
tree1b5fea4598ede93c60f9940b6776f2a0506daa46 /coursier
parentb143c01a2e180b647eb27338cb7302aa38ef10c6 (diff)
downloadcbt-906db6c55289d9aba5da824d5f2f3d2cae70813e.tar.gz
cbt-906db6c55289d9aba5da824d5f2f3d2cae70813e.tar.bz2
cbt-906db6c55289d9aba5da824d5f2f3d2cae70813e.zip
Improved how to express dependencies
Add - Constructor syntax for cross-scala-version dependencies (as rightfully requested on reddit) and encouraged over SBT's still supported operator syntax - Add support for classifiers other than "sources"
Diffstat (limited to 'coursier')
-rw-r--r--coursier/Coursier.scala8
1 files changed, 4 insertions, 4 deletions
diff --git a/coursier/Coursier.scala b/coursier/Coursier.scala
index a2f5f39..48282b1 100644
--- a/coursier/Coursier.scala
+++ b/coursier/Coursier.scala
@@ -1,7 +1,7 @@
/*
package cbt
object Coursier{
- implicit class CoursierDependencyResolution(d: MavenDependency){
+ implicit class CoursierDependencyResolution(d: JavaDependency){
import d._
def resolveCoursier = {
import coursier._
@@ -12,7 +12,7 @@ object Coursier{
val start = Resolution(
Set(
- MavenDependency(
+ JavaDependency(
Module(groupId, artifactId), version
)
)
@@ -23,7 +23,7 @@ object Coursier{
val resolution = start.process.run(fetch).run
- val errors: Seq[(MavenDependency, Seq[String])] = resolution.errors
+ val errors: Seq[(JavaDependency, Seq[String])] = resolution.errors
if(errors.nonEmpty) throw new Exception(errors.toString)
@@ -40,7 +40,7 @@ object Coursier{
case Right(file) => file
})
- resolution.dependencies.map( d => cbt.MavenDependency(d.module.organization,d.module.name, d.version)).to[collection.immutable.Seq]
+ resolution.dependencies.map( d => cbt.JavaDependency(d.module.organization,d.module.name, d.version)).to[collection.immutable.Seq]
}
}
}