Skip to content

Commit

Permalink
Merge pull request #743 from olafurpg/2.12.6
Browse files Browse the repository at this point in the history
Upgrade to 2.12.6
  • Loading branch information
olafurpg authored May 31, 2018
2 parents 9f03d60 + c7db0f8 commit 8490db2
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 10 deletions.
13 changes: 12 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ version.in(ThisBuild) ~= { old: String =>
sys.props.getOrElse("scalafix.version", old.replace('+', '-') + suffix)
}

lazy val scalafixSettings = List(
addCompilerPlugin(scalafixSemanticdb),
scalacOptions += "-Yrangepos"
)

lazy val scalaFixedProjects: List[ProjectReference] =
List(
testsOutputDotty,
Expand Down Expand Up @@ -81,7 +86,8 @@ val diff = MultiScalaCrossProject(
"diff",
_.settings(
moduleName := "scalafix-diff",
description := "JVM/JS library to build unified diffs."
description := "JVM/JS library to build unified diffs.",
scalafixSettings
).jvmSettings(
libraryDependencies += googleDiff
)
Expand All @@ -104,6 +110,7 @@ val core = MultiScalaCrossProject(
"core",
_.settings(
buildInfoSettings,
scalafixSettings,
libraryDependencies ++= List(
scalameta.value,
"org.scala-lang" % "scala-reflect" % scalaVersion.value % Provided
Expand All @@ -129,6 +136,7 @@ val reflect = MultiScalaProject(
"reflect",
_.settings(
isFullCrossVersion,
scalafixSettings,
libraryDependencies ++= Seq(
metacp,
"org.scala-lang" % "scala-compiler" % scalaVersion.value,
Expand All @@ -144,6 +152,7 @@ val cli = MultiScalaProject(
"cli",
_.settings(
isFullCrossVersion,
scalafixSettings,
mainClass in assembly := Some("scalafix.v1.Main"),
assemblyJarName in assembly := "scalafix.jar",
libraryDependencies ++= Seq(
Expand Down Expand Up @@ -240,6 +249,7 @@ val testkit = MultiScalaProject(
"testkit",
_.settings(
isFullCrossVersion,
scalafixSettings,
libraryDependencies ++= Seq(
semanticdb,
ammonite,
Expand Down Expand Up @@ -338,6 +348,7 @@ def unit(
s"scalafix-tests/unit",
_.settings(
noPublish,
scalafixSettings,
fork := false,
javaOptions := Nil,
buildInfoPackage := "scalafix.tests",
Expand Down
7 changes: 2 additions & 5 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
import sbt._
import org.scalajs.sbtplugin.ScalaJSPlugin.autoImport._
import org.portablescala.sbtplatformdeps.PlatformDepsPlugin.autoImport._
/* scalafmt: { maxColumn = 120 }*/

object Dependencies {
val scalametaV = "4.0.0-M1"
val metaconfigV = "0.8.3"
def dotty = "0.1.1-bin-20170530-f8f52cc-NIGHTLY"
def scala210 = "2.10.6"
// NOTE(olafur) downgraded from 2.11.12 and 2.12.4 because of non-reproducible error
// https://travis-ci.org/scalacenter/scalafix/jobs/303142842#L4658
// as well as https://github.com/scala/bug/issues/10609
def scala211 = "2.11.12"
def scala212 = "2.12.4"
def scala212 = "2.12.6"
val currentScalaVersion = scala212

def sbt013 = "0.13.17"
Expand Down
6 changes: 3 additions & 3 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ addSbtPlugin("com.typesafe.sbt" % "sbt-site" % "1.2.0")
// exclude is a workaround for https://github.com/sbt/sbt-assembly/issues/236#issuecomment-294452474
addSbtPlugin(
"com.eed3si9n" % "sbt-assembly" % "0.14.5" exclude ("org.apache.maven", "maven-plugin-api"))
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.18")
addSbtPlugin("ch.epfl.scala" % "sbt-scalajs-bundler" % "0.9.0")
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.5.10")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.23")
addSbtPlugin("ch.epfl.scala" % "sbt-scalajs-bundler" % "0.13.0-RC1")
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.6.0-M7")
addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "0.1.15")
addSbtPlugin("com.47deg" % "sbt-microsites" % "0.7.15")
addSbtPlugin("com.eed3si9n" % "sbt-unidoc" % "0.4.1")
Expand Down
2 changes: 1 addition & 1 deletion project/project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.20")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.23")
addSbtPlugin("io.get-coursier" % "sbt-coursier" % "1.0.2")
unmanagedSources.in(Compile) += baseDirectory.value / ".." / "Dependencies.scala"

0 comments on commit 8490db2

Please sign in to comment.