aboutsummaryrefslogtreecommitdiff
path: root/stage2/GitDependency.scala
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2016-04-03 00:09:19 -0400
committerChristopher Vogt <oss.nsp@cvogt.org>2016-04-03 00:09:26 -0400
commit83d6e39764103bde44d5812aa873ed7537cc8c97 (patch)
tree60a070ef1511aa525cec9bf4c19034804b829679 /stage2/GitDependency.scala
parent8eae49b7b0a39f23518680b56429314db3d977e1 (diff)
downloadcbt-83d6e39764103bde44d5812aa873ed7537cc8c97.tar.gz
cbt-83d6e39764103bde44d5812aa873ed7537cc8c97.tar.bz2
cbt-83d6e39764103bde44d5812aa873ed7537cc8c97.zip
Implement alternative resolvers
This commit also - requires Dependencies to explicitly implement canBeCached - unifies some logic for dependency downloading - moves SBT-like dependency DSL into its own trait - error message showing build directory for exceptions in builds Not splitting this up in favor of faster progress to 1.0. The user facing API can probably be slightly improved using implicits inside of BasicBuild, but we can do that later.
Diffstat (limited to 'stage2/GitDependency.scala')
-rw-r--r--stage2/GitDependency.scala1
1 files changed, 1 insertions, 0 deletions
diff --git a/stage2/GitDependency.scala b/stage2/GitDependency.scala
index aeeeead..27bf253 100644
--- a/stage2/GitDependency.scala
+++ b/stage2/GitDependency.scala
@@ -10,6 +10,7 @@ case class GitDependency(
)(implicit val logger: Logger, classLoaderCache: ClassLoaderCache, context: Context ) extends Dependency{
override def lib = new Lib(logger)
+ override def canBeCached = true
// TODO: add support for authentication via ssh and/or https
// See http://www.codeaffine.com/2014/12/09/jgit-authentication/