From fa6711014343c5edca39c48d748cc95c3faebe40 Mon Sep 17 00:00:00 2001 From: Eugene Yokota Date: Sun, 16 Jul 2017 14:12:45 -0400 Subject: [PATCH] Fixes compiler-project/separate-analysis-per-scala --- notes/1.0.0.markdown | 6 ++++-- .../compiler-project/separate-analysis-per-scala/build.sbt | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/notes/1.0.0.markdown b/notes/1.0.0.markdown index d817b48dd..baa2feea1 100644 --- a/notes/1.0.0.markdown +++ b/notes/1.0.0.markdown @@ -35,8 +35,10 @@ This is the RC-1 release of sbt 1.0. again. - sbt 1.0 renames `Global` as scope component to `Zero` to disambiguate from `GlobalScope`. [@eed3si9n][@eed3si9n] - sbt 1.0 uses `ConfigRef` in places where `String` was used to reference configuration, such as `update.value.configuration(...)`. Pass in `Configuration`, which implicitly converts to `ConfigRef`. -- sbt 1.0 changes `sourceArtifactTypes` and `docArtifactTypes` from `Set[String]` to `Seq[String]` settings. -- sbt 1.0 renames `ivyScala: IvyScala` to `scalaModuleInfo: ScalaModuleInfo`. +- Changes `sourceArtifactTypes` and `docArtifactTypes` from `Set[String]` to `Seq[String]` settings. +- Renames `ivyScala: IvyScala` to `scalaModuleInfo: ScalaModuleInfo`. +- Java classes under the `xsbti.compile` package hides the constructor. Use the factory method `xsbti.compile.Foo.of(...)`. + The Scala Center is working with Lightbend to provide [an automatic migration tool][sbt-migration-rewrites]. diff --git a/sbt/src/sbt-test/compiler-project/separate-analysis-per-scala/build.sbt b/sbt/src/sbt-test/compiler-project/separate-analysis-per-scala/build.sbt index 51beaab25..d1a4804b7 100644 --- a/sbt/src/sbt-test/compiler-project/separate-analysis-per-scala/build.sbt +++ b/sbt/src/sbt-test/compiler-project/separate-analysis-per-scala/build.sbt @@ -5,7 +5,7 @@ scalaVersion := "2.10.6" crossScalaVersions := List("2.10.6", "2.11.8") incOptions := incOptions.value.withClassfileManagerType( - Option(new xsbti.compile.TransactionalManagerType( + Option(xsbti.compile.TransactionalManagerType.of( crossTarget.value / "classes.bak", (streams in (Compile, compile)).value.log ): xsbti.compile.ClassFileManagerType).asJava