Merge pull request #128 from Duhemm/wip/compiler-api

Minimal API for `ScalaCompiler`, expose in `Compilers`
This commit is contained in:
eugene yokota 2016-06-08 01:30:51 -04:00
commit 0539410fdd
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ private[sbt] object ComponentCompiler {
def apply(scalaInstance: xsbti.compile.ScalaInstance, log: Logger): File =
{
// this is the instance used to compile the interface component
val componentCompiler = new IvyComponentCompiler(new RawCompiler(scalaInstance, ClasspathOptions.auto, log), manager, ivyConfiguration, sourcesModule, log)
val componentCompiler = new IvyComponentCompiler(new RawCompiler(scalaInstance, ClasspathOptionsUtil.auto, log), manager, ivyConfiguration, sourcesModule, log)
log.debug("Getting " + sourcesModule + " from component compiler for Scala " + scalaInstance.version)
componentCompiler()
}

View File

@ -32,7 +32,7 @@ abstract class BridgeProviderSpecification extends BaseIvySpecification {
val bridgeId = compilerBridgeId(scalaVersion)
val sourceModule = ModuleID(xsbti.ArtifactInfo.SbtOrganization, bridgeId, ComponentCompiler.incrementalVersion, Some("component")).sources()
val raw = new RawCompiler(instance, ClasspathOptions.auto, log)
val raw = new RawCompiler(instance, ClasspathOptionsUtil.auto, log)
val manager = new ComponentManager(lock, provider(targetDir), None, log)
val componentCompiler = new IvyComponentCompiler(raw, manager, ivyConfiguration, sourceModule, log)