From 0442721647d186faab7d3055a6ca1dc45234d84d Mon Sep 17 00:00:00 2001 From: Christopher Vogt Date: Mon, 13 Feb 2017 23:01:48 -0500 Subject: fix dotty runtime dependency and expose some more config statically --- stage2/plugins/Dotty.scala | 21 +++++++++++---------- 1 file 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( -- cgit v1.2.3