Fixes source-dependencies / transitive-memberRef

This commit is contained in:
Eugene Yokota 2017-07-16 17:38:58 -04:00
parent baadd76544
commit c279995cdd
2 changed files with 2 additions and 2 deletions

View File

@ -45,6 +45,7 @@ The Scala Center is working with Lightbend to provide [an automatic migration to
- Java classes under the `xsbti.compile` package such as `IncOptions` hides the constructor. Use the factory method `xsbti.compile.Foo.of(...)`.
- Renames `ivyScala: IvyScala` to `scalaModuleInfo: ScalaModuleInfo`.
- `xsbti.Reporter#log(...)` takes `xsbti.Problem` as the parameter. Call `log(problem.position, problem.message, problem.severity)` to delegate to the older `log(...)`.
- `xsbi.Maybe`, `xsbti.F0`, and `sxbti.F1` are changed to corresponding Java 8 classes `java.util.Optional`, `java.util.Supplier` and `java.util.Function`.
#### Features

View File

@ -1,5 +1,4 @@
import sbt.internal.inc.Analysis
import xsbti.Maybe
import xsbti.compile.{PreviousResult, CompileAnalysis, MiniSetup}
logLevel := Level.Debug
@ -8,7 +7,7 @@ logLevel := Level.Debug
previousCompile in Compile := {
val previous = (previousCompile in Compile).value
if (!CompileState.isNew) {
val res = new PreviousResult(none[CompileAnalysis].asJava, none[MiniSetup].asJava)
val res = PreviousResult.of(none[CompileAnalysis].asJava, none[MiniSetup].asJava)
CompileState.isNew = true
res
} else previous