aboutsummaryrefslogtreecommitdiff
path: root/stage2/plugins
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2017-02-13 23:01:48 -0500
committerChristopher Vogt <oss.nsp@cvogt.org>2017-02-13 23:58:43 -0500
commit0442721647d186faab7d3055a6ca1dc45234d84d (patch)
treef72f9db30e661efe8d298d5ed135e7c7de2f2395 /stage2/plugins
parentb8e3edf032c60e8c9ae4f28d5c3ac2e2720308cc (diff)
downloadcbt-0442721647d186faab7d3055a6ca1dc45234d84d.tar.gz
cbt-0442721647d186faab7d3055a6ca1dc45234d84d.tar.bz2
cbt-0442721647d186faab7d3055a6ca1dc45234d84d.zip
fix dotty runtime dependency and expose some more config statically
Diffstat (limited to 'stage2/plugins')
-rw-r--r--stage2/plugins/Dotty.scala21
1 files changed, 11 insertions, 10 deletions
diff --git a/stage2/plugins/Dotty.scala b/stage2/plugins/Dotty.scala
index 8a49257..8b1726e 100644
--- a/stage2/plugins/Dotty.scala
+++ b/stage2/plugins/Dotty.scala
@@ -9,15 +9,15 @@ trait Dotty extends BaseBuild{
def dottyOptions: Seq[String] = Seq()
override def scalaTarget: File = target ++ s"/dotty-$dottyVersion"
- def dottyDependency: DependencyImplementation =
- Resolver(mavenCentral).bindOne(
- MavenDependency(Dotty.groupId,Dotty.artifactId,Dotty.version)
- )
+ def dottyCompiler: DependencyImplementation = Resolver(mavenCentral).bindOne( Dotty.compilerOnMaven( dottyVersion ) )
+ def dottyLibrary: DependencyImplementation = Resolver(mavenCentral).bindOne( Dotty.libraryOnMaven( dottyVersion ) )
+ // this seems needed for cbt run of dotty produced artifacts
+ override def dependencies: Seq[Dependency] = Seq( dottyLibrary )
private lazy val dottyLib = new DottyLib(
logger, context.cbtLastModified, context.paths.mavenCache,
- context.classLoaderCache, dottyDependency
+ context.classLoaderCache, dottyCompiler
)
override def compile: Option[Long] = taskCache[Dotty]("compile").memoize{
@@ -32,15 +32,16 @@ trait Dotty extends BaseBuild{
)
override def repl = dottyLib.repl(context.args, classpath)
-
- // this seems needed for cbt run of dotty produced artifacts
- override def dependencies: Seq[Dependency] = Seq( dottyDependency )
}
object Dotty{
- val version: String = "0.1.1-20170203-da7d723-NIGHTLY"
val groupId = "ch.epfl.lamp"
- val artifactId = "dotty_2.11"
+ val version: String = "0.1.1-20170203-da7d723-NIGHTLY"
+ val libraryArtifactId = "dotty-library_2.11"
+ val compilerArtifactId = "dotty-compiler_2.11"
+ val interfacesArtifactId = "dotty-interfaces"
+ def compilerOnMaven(version: String) = MavenDependency(groupId,compilerArtifactId,version)
+ def libraryOnMaven(version: String) = MavenDependency(groupId,libraryArtifactId,version)
}
class DottyLib(