diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2016-03-12 16:06:14 -0500 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2016-03-12 16:06:14 -0500 |
commit | 906db6c55289d9aba5da824d5f2f3d2cae70813e (patch) | |
tree | 1b5fea4598ede93c60f9940b6776f2a0506daa46 /stage2/BuildDependency.scala | |
parent | b143c01a2e180b647eb27338cb7302aa38ef10c6 (diff) | |
download | cbt-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 'stage2/BuildDependency.scala')
-rw-r--r-- | stage2/BuildDependency.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stage2/BuildDependency.scala b/stage2/BuildDependency.scala index f7b6b78..f400be7 100644 --- a/stage2/BuildDependency.scala +++ b/stage2/BuildDependency.scala @@ -28,7 +28,7 @@ case class BuildDependency(context: Context) extends TriggerLoop{ final val updated = build.updated } /* -case class DependencyOr(first: BuildDependency, second: MavenDependency) extends ProjectProxy with BuildDependencyBase{ +case class DependencyOr(first: BuildDependency, second: JavaDependency) extends ProjectProxy with BuildDependencyBase{ val isFirst = new File(first.context.cwd).exists def triggerLoopFiles = if(isFirst) first.triggerLoopFiles else Seq() protected val delegate = if(isFirst) first else second |