-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix #22
- Loading branch information
Showing
29 changed files
with
198 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ before_install: | |
|
||
language: scala | ||
scala: | ||
- 2.12.4 | ||
- 2.13.1 | ||
|
||
jdk: | ||
- oraclejdk8 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,19 +2,19 @@ import sbt.Keys.thisProjectRef | |
|
||
organization in ThisBuild := "io.waylay.kairosdb" | ||
|
||
val playWsVersion = "2.0.3" | ||
val playJsonVersion = "2.7.2" | ||
val akkaVersion = "2.5.22" | ||
val specs2Version = "4.0.2" | ||
val dockerTestkitVersion = "0.9.8" | ||
val scalaTestVersion = "3.0.4" | ||
val playVersion = "2.7.1" // test only | ||
val playWsVersion = "2.0.7" | ||
val playJsonVersion = "2.7.4" | ||
val akkaVersion = "2.5.23" | ||
val specs2Version = "4.8.1" | ||
val dockerTestkitVersion = "0.10.0-beta8" | ||
val scalaTestVersion = "3.0.8" | ||
val playVersion = "2.7.3" // test only | ||
|
||
val scala2_11 = "2.11.12" | ||
val scala2_12 = "2.12.8" | ||
val scala2_12 = "2.12.10" | ||
val scala2_13 = "2.13.1" | ||
|
||
scalaVersion := scala2_12 | ||
crossScalaVersions := Seq(scala2_11, scala2_12) | ||
scalaVersion := scala2_13 | ||
crossScalaVersions := Seq(scala2_12, scala2_13) | ||
|
||
releaseCrossBuild := true | ||
|
||
|
@@ -27,68 +27,64 @@ val exclusions = Seq( | |
"netty-handler", | ||
"netty-transport-native-epoll", | ||
"netty-codec-socks", | ||
"netty-codec-http").map(name => ExclusionRule(organization = "io.netty", name = name)) | ||
"netty-codec-http" | ||
).map(name => ExclusionRule(organization = "io.netty", name = name)) | ||
|
||
lazy val root = (project in file(".")) | ||
.settings( | ||
name := "kairosdb-scala", | ||
|
||
fork in Test := true, | ||
parallelExecution in IntegrationTest := false, | ||
|
||
// Be wary of adding extra dependencies (especially the Waylay common dependencies) | ||
// They may pull in a newer Netty version, breaking play-ws | ||
libraryDependencies ++= Seq( | ||
"org.scala-lang.modules" %% "scala-collection-compat" % "2.1.2", | ||
"com.typesafe.play" %% "play-json" % playJsonVersion, | ||
"com.typesafe.play" %% "play-ws-standalone" % playWsVersion, | ||
"com.typesafe.play" %% "play-ws-standalone-json" % playWsVersion, | ||
"com.typesafe.scala-logging" %% "scala-logging" % "3.9.0", | ||
"com.typesafe.scala-logging" %% "scala-logging" % "3.9.2", | ||
"com.typesafe.akka" %% "akka-actor" % akkaVersion, | ||
|
||
|
||
"io.lemonlabs" %% "scala-uri" % "0.4.16", | ||
|
||
"io.lemonlabs" %% "scala-uri" % "1.5.1", | ||
// TEST | ||
"org.specs2" %% "specs2-core" % specs2Version % Test, | ||
"org.specs2" %% "specs2-junit" % specs2Version % Test, | ||
"de.leanovate.play-mockws" %% "play-mockws" % "2.6.2" % Test, | ||
"com.typesafe.play" %% "play-ahc-ws" % playVersion % TestAndIntegrationTest, // neede for play-mockws | ||
"de.leanovate.play-mockws" %% "play-mockws" % "2.7.1" % Test, | ||
"com.typesafe.play" %% "play-ahc-ws" % playVersion % TestAndIntegrationTest, // neede for play-mockws | ||
"com.typesafe.play" %% "play-test" % playVersion % TestAndIntegrationTest, // play-mockws depends on some types in this dependency | ||
"com.typesafe.play" %% "play-ahc-ws-standalone" % playWsVersion % TestAndIntegrationTest, | ||
|
||
// INTEGRATION TESTS | ||
// TODO investigate if we can do this with specs2 | ||
"org.scalatest" %% "scalatest" % scalaTestVersion % TestAndIntegrationTest, | ||
"com.whisk" %% "docker-testkit-scalatest" % dockerTestkitVersion % TestAndIntegrationTest excludeAll(exclusions:_*), | ||
"com.whisk" %% "docker-testkit-impl-spotify" % dockerTestkitVersion % TestAndIntegrationTest excludeAll(exclusions:_*) | ||
"com.whisk" %% "docker-testkit-scalatest" % dockerTestkitVersion % TestAndIntegrationTest excludeAll (exclusions: _*) | ||
), | ||
scalacOptions ++= Seq( | ||
"-feature", | ||
"-deprecation", | ||
"-unchecked", | ||
"-encoding", "UTF-8", // yes, this is 2 args | ||
"-encoding", | ||
"UTF-8", // yes, this is 2 args | ||
"-language:existentials", | ||
"-language:higherKinds", | ||
"-language:implicitConversions", | ||
"-unchecked", | ||
"-Xlint", | ||
"-Yno-adapted-args", | ||
"-Ywarn-dead-code", | ||
"-Xfuture" | ||
"-Ywarn-dead-code" | ||
) | ||
) | ||
.configs(IntegrationTest).settings(Defaults.itSettings: _*) | ||
|
||
.configs(IntegrationTest) | ||
.settings(Defaults.itSettings: _*) | ||
|
||
enablePlugins(GhpagesPlugin) | ||
enablePlugins(SiteScaladocPlugin) | ||
|
||
val publishScalaDoc = (ref: ProjectRef) => ReleaseStep( | ||
action = releaseStepTaskAggregated(ghpagesPushSite in ref) // publish scaladoc | ||
val publishScalaDoc = (ref: ProjectRef) => | ||
ReleaseStep( | ||
action = releaseStepTaskAggregated(ghpagesPushSite in ref) // publish scaladoc | ||
) | ||
|
||
val runIntegrationTest = (ref: ProjectRef) => ReleaseStep( | ||
action = releaseStepTaskAggregated(test in IntegrationTest in ref) | ||
val runIntegrationTest = (ref: ProjectRef) => | ||
ReleaseStep( | ||
action = releaseStepTaskAggregated(test in IntegrationTest in ref) | ||
) | ||
|
||
releaseProcess := { | ||
|
@@ -116,7 +112,7 @@ git.remoteRepo := "[email protected]:waylayio/kairosdb-scala.git" | |
lazy val examples = project | ||
.dependsOn(root) | ||
.settings( | ||
scalaVersion := scala2_12, | ||
scalaVersion := scala2_13, | ||
libraryDependencies ++= Seq( | ||
"com.typesafe.play" %% "play-ahc-ws-standalone" % playWsVersion | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.