Skip to content

Commit

Permalink
Merge pull request #11 from ThoughtWorksInc/Atry-patch-1
Browse files Browse the repository at this point in the history
Upgrade to Scala 2.13.0
  • Loading branch information
Atry authored Jun 9, 2019
2 parents a4a8572 + 2ef3fb1 commit 00bb8f1
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ addons:
language: scala

scala:
- "2.10.7"
- "2.11.12"
- "2.12.8"
- 2.13.0-RC1
- 2.10.7
- 2.11.12
- 2.12.8
- 2.13.0

jdk:
- oraclejdk8
Expand Down
9 changes: 8 additions & 1 deletion comprehension-monad/build.sbt.shared
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@ libraryDependencies += "org.scala-lang" % "scala-reflect" % scalaVersion.value

libraryDependencies += "org.scala-lang" % "scala-compiler" % scalaVersion.value % Provided

libraryDependencies += "org.typelevel" %% "macro-compat" % "1.1.1"
libraryDependencies ++= {
import Ordering.Implicits._
if (VersionNumber(scalaVersion.value).numbers >= Seq(2L, 13L)) {
None
} else {
Some("org.typelevel" %% "macro-compat" % "1.1.1")
}
}

scalacOptions ++= {
import Ordering.Implicits._
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.thoughtworks.sde.comprehensionMonad.macrocompat

import scala.annotation.Annotation

private[comprehensionMonad] class bundle extends Annotation
11 changes: 9 additions & 2 deletions core/build.sbt.shared
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,16 @@ libraryDependencies ++= {
}
}

libraryDependencies += "org.scala-lang" % "scala-compiler" % scalaVersion.value % Provided
libraryDependencies ++= {
import Ordering.Implicits._
if (VersionNumber(scalaVersion.value).numbers >= Seq(2L, 13L)) {
None
} else {
Some("org.typelevel" %% "macro-compat" % "1.1.1")
}
}

libraryDependencies += "org.typelevel" %% "macro-compat" % "1.1.1"
libraryDependencies += "org.scala-lang" % "scala-compiler" % scalaVersion.value % Provided

libraryDependencies += "org.scala-lang" % "scala-reflect" % scalaVersion.value

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.thoughtworks.sde.core.macrocompat

import scala.annotation.Annotation

private[core] class bundle extends Annotation
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ addSbtPlugin("com.thoughtworks.sbt-best-practice" % "sbt-best-practice" % "7.0.1

addSbtPlugin("com.thoughtworks.sbt-scala-js-map" % "sbt-scala-js-map" % "4.0.0")

addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.27")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.28")

addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.5")

Expand Down

0 comments on commit 00bb8f1

Please sign in to comment.