aboutsummaryrefslogtreecommitdiff
path: root/stage2/plugins.scala
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2017-04-02 00:18:37 -0400
committerChristopher Vogt <oss.nsp@cvogt.org>2017-04-02 00:25:43 -0400
commit56c49924f4016b922801d0ab28c787240044e886 (patch)
tree0de314955ec3be08801be7ee87aae96b8bc87145 /stage2/plugins.scala
parent5553c92eec89fa06c6eaa61645b2c9cb8332f404 (diff)
downloadcbt-56c49924f4016b922801d0ab28c787240044e886.tar.gz
cbt-56c49924f4016b922801d0ab28c787240044e886.tar.bz2
cbt-56c49924f4016b922801d0ab28c787240044e886.zip
propagate scala versions into aliased dependencies
not necessary for plugins yet, but will be when we allow choosing your scala version for build files
Diffstat (limited to 'stage2/plugins.scala')
-rw-r--r--stage2/plugins.scala11
1 files changed, 8 insertions, 3 deletions
diff --git a/stage2/plugins.scala b/stage2/plugins.scala
index 6c5ee29..ec01d86 100644
--- a/stage2/plugins.scala
+++ b/stage2/plugins.scala
@@ -1,7 +1,12 @@
package cbt
-class plugins( implicit context: Context ) {
- // TODO: move this out of the OO
- private def plugin( dir: String ) = DirectoryDependency( context.cbtHome / "plugins" / dir )
+class plugins( context: Context, scalaVersion: String ) {
+ private def plugin( name: String ) = DirectoryDependency(
+ context.copy(
+ scalaVersion = Some( scalaVersion ),
+ workingDirectory = context.cbtHome / "plugins" / name
+ ),
+ None
+ )
final lazy val googleJavaFormat = plugin( "google-java-format" )
final lazy val proguard = plugin( "proguard" )
final lazy val sbtLayout = plugin( "sbt_layout" )