Skip to content

Commit

Permalink
Use CrossVersion.patch instead of .full
Browse files Browse the repository at this point in the history
Also scalaOrganization.value instead of "org.scala-lang".
  • Loading branch information
durban committed Feb 22, 2017
1 parent 26dea96 commit 3bfd2d7
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 8 deletions.
5 changes: 2 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,11 @@ lazy val lawsSettings = Seq[Setting[_]](
)

lazy val checkerSettings = Seq[Setting[_]](
// FIXME: use scalaOrganization (?)
libraryDependencies += "org.scala-lang" % "scala-compiler" % scalaVersion.value
libraryDependencies += scalaOrganization.value % "scala-compiler" % scalaVersion.value
)

lazy val macroParadiseSettings = Seq[Setting[_]](
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full)
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.patch)
)

lazy val sbtPluginSettings = scriptedSettings ++ Seq[Setting[_]](
Expand Down
2 changes: 1 addition & 1 deletion plugin/src/sbt-test/seals-plugin/example/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ lazy val proto = project
.settings(name := "example-proto")
.settings(commonSettings)
.settings(
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full),
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.patch),
mimaPreviousArtifacts := Set(organization.value %% name.value % "0.1.0"),
sealsSchemaPackages += "com.example.proto"
)
Expand Down
2 changes: 1 addition & 1 deletion plugin/src/sbt-test/seals-plugin/example/changes/v010.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ lazy val proto = project
.settings(name := "example-proto")
.settings(commonSettings)
.settings(
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full),
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.patch),
mimaPreviousArtifacts := Set(organization.value %% name.value % "0.1.0"),
sealsSchemaPackages += "com.example.proto"
)
Expand Down
2 changes: 1 addition & 1 deletion plugin/src/sbt-test/seals-plugin/example/changes/v020.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ lazy val proto = project
.settings(name := "example-proto")
.settings(commonSettings)
.settings(
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full),
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.patch),
mimaPreviousArtifacts := Set(organization.value %% name.value % "0.1.0"),
sealsSchemaPackages += "com.example.proto"
)
Expand Down
2 changes: 1 addition & 1 deletion plugin/src/sbt-test/seals-plugin/test0/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ scalaVersion := "2.11.8"

crossScalaVersions := Seq(scalaVersion.value, "2.12.1")

addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full)
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.patch)

libraryDependencies += "io.sigs" %% "seals-core" % "0.1.0-SNAPSHOT" // TODO: don't hardcode version

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ scalaVersion := "2.11.8"

crossScalaVersions := Seq(scalaVersion.value, "2.12.1")

addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full)
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.patch)

libraryDependencies += "io.sigs" %% "seals-core" % "0.1.0-SNAPSHOT" // TODO: don't hardcode version

Expand Down

0 comments on commit 3bfd2d7

Please sign in to comment.