Skip to content

Commit

Permalink
Initial adjustments for scala 2.13 release
Browse files Browse the repository at this point in the history
  • Loading branch information
kolotaev committed Jan 28, 2020
1 parent 9c26345 commit 9a3a86f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ dist: trusty

scala:
- 2.12.2
- 2.13.1

jdk:
- oraclejdk8
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ sortable property of the ID.
In your `build.sbt` add
```scala
resolvers += Resolver.jcenterRepo
libraryDependencies += "com.github.kolotaev" %% "ride" % "1.1.0"
libraryDependencies += "com.github.kolotaev" %% "ride" % "(version)"
```

#### Generating IDs
Expand Down
8 changes: 6 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
val username = "kolotaev"
val repo = "ride"

val SCALA_2_12 = "2.12.2"
val SCALA_2_13 = "2.13.1"

name := "ride"
organization := s"com.github.$username"
version := "1.1.0"

scalaVersion := "2.12.2"
scalaVersion := SCALA_2_12
crossScalaVersions := Seq(SCALA_2_12, SCALA_2_13)
javacOptions ++= Seq(
"-source", "1.8", "-target", "1.8", "-Xlint"
)

libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.0.4" % "test"
"org.scalatest" %% "scalatest" % "3.0.8" % "test"
)

licenses := Seq("MIT" -> url("https://opensource.org/licenses/MIT"))
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/com/github/kolotaev/ride/Id.scala
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class Id(bytes: Option[Array[Byte]] = None) extends Serializable with Ordered[Id
override def equals(other: Any): Boolean = other match {
case that: Id =>
(that canEqual this) &&
value.deep == that.value.deep
value.mkString == that.value.mkString
case _ => false
}

Expand Down

0 comments on commit 9a3a86f

Please sign in to comment.