Skip to content
Permalink
Browse files

Bump dependencies (#73)

  • Loading branch information...
guersam authored and notxcain committed Jul 11, 2019
1 parent eb41c1c commit b29c3aa0c675183235e93cb55195941cb6aae3e2
@@ -1,9 +1,10 @@
language: scala
scala:
- 2.12.4
- 2.12.8

jdk:
- openjdk8
- openjdk11

cache:
directories:
@@ -15,4 +16,11 @@ cache:
- $HOME/.cache

script:
- sbt ++$TRAVIS_SCALA_VERSION! clean validate
- sbt ++$TRAVIS_SCALA_VERSION! clean validate

before_cache:
# See https://www.scala-sbt.org/1.x/docs/Travis-CI-with-sbt.html
# Tricks to avoid unnecessary cache updates
- find $HOME/.sbt -name "*.lock" | xargs rm
- find $HOME/.ivy2 -name "ivydata-*.properties" | xargs rm
- rm -f $HOME/.ivy2/.sbt.ivy.lock
@@ -4,24 +4,28 @@ import sbtrelease.Version.Bump
lazy val buildSettings = inThisBuild(
Seq(
organization := "io.aecor",
scalaVersion := "2.12.7"
scalaVersion := "2.12.8"
)
)

lazy val akkaVersion = "2.5.23"
lazy val akkaPersistenceCassandraVersion = "0.61"
lazy val akkaPersistenceCassandraVersion = "0.62"


lazy val apacheKafkaClientsVersion = "2.1.0"
lazy val catsVersion = "1.6.0"
lazy val catsEffectVersion = "1.3.0"
lazy val catsVersion = "1.6.1"
lazy val catsEffectVersion = "1.3.1"

lazy val logbackVersion = "1.2.3"
lazy val cassandraDriverExtrasVersion = "3.1.0"
lazy val jsr305Version = "3.0.1"
lazy val boopickleVersion = "1.3.0"
lazy val cassandraDriverExtrasVersion = "3.7.1"
lazy val jsr305Version = "3.0.2"
lazy val boopickleVersion = "1.3.1"
lazy val monocleVersion = "1.5.1-cats"
lazy val fs2Version = "1.0.4"

lazy val fs2Version = "1.0.5"
lazy val scodecBitsVersion = "1.1.12"
lazy val scodecCoreVersion = "1.11.4"

lazy val catsTaglessVersion = "0.8"

lazy val scalaCheckVersion = "1.13.4"
@@ -33,13 +37,12 @@ lazy val betterMonadicForVersion = "0.3.0"

// Example dependencies

lazy val circeVersion = "0.10.1"
lazy val http4sVersion = "0.20.0-M3"
lazy val circeVersion = "0.11.1"
lazy val http4sVersion = "0.20.3"
lazy val log4catsVersion = "0.3.0"
lazy val catsMTLVersion = "0.4.0"
lazy val catsMTLVersion = "0.5.0"

lazy val commonSettings = Seq(
resolvers += "jitpack" at "https://jitpack.io",
scalacOptions ++= commonScalacOptions,
addCompilerPlugin("org.typelevel" %% "kind-projector" % kindProjectorVersion),
addCompilerPlugin("com.olegpy" %% "better-monadic-for" % betterMonadicForVersion),
@@ -20,8 +20,9 @@ import cats.implicits._

import scala.concurrent.duration._
import fs2._
import org.http4s.server.Server
import org.http4s.server.blaze.BlazeBuilder
import org.http4s.server.{ Router, Server }
import org.http4s.server.blaze.BlazeServerBuilder
import org.http4s.syntax.kleisli._

object App extends IOApp {

@@ -95,10 +96,14 @@ object App extends IOApp {
transaction.DefaultTransactionService(transactions)
val accountService: account.AccountService[IO] = account.DefaultAccountService(accounts)

BlazeBuilder[IO]
val httpApp = Router[IO](
"/" -> TransactionRoute(transactionService),
"/" -> AccountRoute(accountService)
).orNotFound

BlazeServerBuilder[IO]
.bindHttp(config.getInt("http.port"), config.getString("http.interface"))
.mountService(TransactionRoute(transactionService), "/")
.mountService(AccountRoute(accountService), "/")
.withHttpApp(httpApp)
.resource
}

@@ -45,7 +45,7 @@ class AkkaPersistenceRuntimeSpec

override def systemName = system.name

override implicit val patienceConfig = PatienceConfig(15.seconds, 150.millis)
override implicit val patienceConfig = PatienceConfig(30.seconds, 150.millis)

val timer = IO.timer(system.dispatcher)

@@ -1,5 +1,7 @@
package aecor.tests


import java.time.temporal.{ ChronoField, Temporal }
import java.time.{ Instant, LocalDateTime }

import aecor.runtime.akkapersistence.serialization.{ PersistentDecoder, PersistentEncoder }
@@ -17,8 +19,13 @@ class ScheduleEventCodecSpec
val encoder = PersistentEncoder[ScheduleEvent]
val decoder = PersistentDecoder[ScheduleEvent]

implicit val arbitraryLocalDateTime = Arbitrary(Gen.lzy(Gen.const(LocalDateTime.now())))
implicit val arbitraryInstant = Arbitrary(Gen.lzy(Gen.const(Instant.now())))
// OpenJDK 9+ offers more precise system clock than millisecond.
// https://bugs.openjdk.java.net/browse/JDK-8068730
def dropBelowMillis[A <: Temporal](t: A): A =
t.`with`(ChronoField.MICRO_OF_SECOND, t.getLong(ChronoField.MILLI_OF_SECOND) * 1000L).asInstanceOf[A]

implicit val arbitraryLocalDateTime = Arbitrary(Gen.lzy(Gen.const(dropBelowMillis(LocalDateTime.now()))))
implicit val arbitraryInstant = Arbitrary(Gen.lzy(Gen.const(dropBelowMillis(Instant.now()))))

test("ScheduleEventCodec must be able to encode and decode ScheduleEvent") {
forAll { e: ScheduleEvent =>
@@ -9,9 +9,10 @@ addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.0")
addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.3.3")
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.3.14")

addSbtPlugin("com.thesamet" % "sbt-protoc" % "0.99.19")
addSbtPlugin("com.lucidchart" % "sbt-scalafmt" % "1.15")
addSbtPlugin("com.thesamet" % "sbt-protoc" % "0.99.23")

libraryDependencies += "com.thesamet.scalapb" %% "compilerplugin" % "0.8.2"
libraryDependencies += "com.thesamet.scalapb" %% "compilerplugin" % "0.9.0"

addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.0.0")
addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.4.0")
addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.4.1")

0 comments on commit b29c3aa

Please sign in to comment.
You can’t perform that action at this time.