Skip to content

Commit

Permalink
Use CrossVersion.full. Build for Scala 2.13.1 and 2.13.2.
Browse files Browse the repository at this point in the history
Termporarily disable -Xfatal-warnings.
  • Loading branch information
TomasMikula committed Apr 25, 2020
1 parent 4a5346f commit 795176a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,13 +170,7 @@ new T { self =>
To use this plugin in your project, add the following line to your `build.sbt` file:

```scala
addCompilerPlugin("com.github.tomasmikula" %% "pascal" % "0.3.5")
```

If your project uses multiple Scala versions, use this for cross building instead

```scala
addCompilerPlugin("com.github.tomasmikula" % "pascal" % "0.3.5" cross CrossVersion.binary)
addCompilerPlugin("com.github.tomasmikula" % "pascal" % "0.4.0" cross CrossVersion.full)
```

If your project uses Scala 2.10, also add
Expand Down
11 changes: 8 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ licenses += ("MIT", url("http://opensource.org/licenses/MIT"))
homepage := Some(url("http://github.com/TomasMikula/pascal"))

scalaVersion := "2.12.8"
crossScalaVersions := Seq("2.10.7", "2.11.12", "2.12.8", "2.13.0")
crossScalaVersions := Seq("2.10.7", "2.11.12", "2.12.8", "2.12.9", "2.12.10", "2.13.0", "2.13.1", "2.13.2")
crossVersion := CrossVersion.full
crossTarget := {
// workarond for https://github.com/sbt/sbt/issues/5097
target.value / s"scala-${scalaVersion.value}"
}

unmanagedSourceDirectories in Compile += {
CrossVersion.partialVersion(scalaVersion.value) match {
Expand All @@ -15,7 +20,7 @@ unmanagedSourceDirectories in Compile += {
}
}

addCompilerPlugin("org.typelevel" %% "kind-projector" % "0.10.3")
addCompilerPlugin("org.typelevel" % "kind-projector" % "0.11.0" cross CrossVersion.full)

libraryDependencies ++= Seq(
scalaOrganization.value % "scala-compiler" % scalaVersion.value,
Expand All @@ -33,7 +38,7 @@ def scala210ExtraDeps = Seq(
)

scalacOptions ++= Seq(
"-Xfatal-warnings",
//"-Xfatal-warnings",
"-Xlint",
"-feature",
"-language:higherKinds",
Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.2.8
sbt.version=1.3.10

0 comments on commit 795176a

Please sign in to comment.