Skip to content

Commit d58a19a

Browse files
committed
scala 3
1 parent 26f9f90 commit d58a19a

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

build.sbt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@ name := "scala-regex-collection"
22

33
version := "2.0.0"
44

5-
scalaVersion := "3.0.0-RC2"
5+
scalaVersion := "3.0.0"
66
organization := "com.github.gekomad"
77

8-
libraryDependencies += "org.typelevel" %% "discipline-scalatest" % "2.1.3" % Test
9-
crossScalaVersions := Seq("2.12.8", "2.13.5", "3.0.0-RC2")
8+
libraryDependencies += "org.typelevel" %% "discipline-scalatest" % "2.1.5" % Test
109

11-
scalacOptions ++= Seq("-deprecation", "-language:postfixOps", "-feature", "-unchecked", "-Xfatal-warnings")
10+
crossScalaVersions := Seq("2.12.8", "2.13.5", "3.0.0")
1211

1312
publishTo := sonatypePublishTo.value

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=1.5.0-RC2
1+
sbt.version = 1.5.2

project/plugins.sbt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.3")
2-
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.1")
1+
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.5")
2+
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.1.2")

src/test/scala/Validate.scala

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -956,13 +956,14 @@ class Validate extends AnyFunSuite {
956956
import com.github.gekomad.regexcollection.Collection.Validator
957957
import scala.util.Try
958958

959-
implicit val validator = Validator[Foo](
960-
(a: String) =>
961-
Try(a.toInt) match {
962-
case Failure(_) => None
963-
case Success(i) => if (i % 2 == 0) Option(a) else None
964-
}
965-
)
959+
implicit val validator: Validator[Foo] =
960+
Validator[Foo](
961+
(a: String) =>
962+
Try(a.toInt) match {
963+
case Failure(_) => None
964+
case Success(i) => if (i % 2 == 0) Option(a) else None
965+
}
966+
)
966967

967968
assert(validate[Foo]("42") == Some("42"))
968969
assert(validate[Foo]("21") == None)

0 commit comments

Comments
 (0)