-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial 3.0.0-beta1 release - migrates from Akka to Pekko nightly build
- Loading branch information
Showing
51 changed files
with
216 additions
and
1,051 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,84 +1,93 @@ | ||
|
||
resolvers += "Typesafe Releases" at "https://repo.typesafe.com/typesafe/releases/" | ||
// resolvers += "Typesafe Releases" at "https://repo.typesafe.com/typesafe/releases/" | ||
|
||
val akkaVersion = "2.6.19" | ||
val pekkoGroup = "org.apache.pekko" | ||
|
||
val scalaCheck = "org.scalacheck" %% "scalacheck" % "1.15.4" | ||
val specs2 = "org.specs2" %% "specs2-core" % "4.17.0" | ||
val scalaTest = "org.scalatest" %% "scalatest" % "3.2.14" | ||
val pekkoVersion = "0.0.0+26626-3e1231c3-SNAPSHOT" | ||
val pekkoHttpVersion = "0.0.0+4332-87421a76-SNAPSHOT" | ||
|
||
// the client API request/response handing uses Pekka Http | ||
val pekkoHttp = pekkoGroup %% "pekko-http" % pekkoHttpVersion | ||
|
||
// The `watch` and some other functionality uses Pekko streams | ||
val pekkoStreams = pekkoGroup %% "pekko-stream" % pekkoVersion | ||
val pekkoStreamsTestkit = pekkoGroup %% "pekko-stream-testkit" % pekkoVersion % Test | ||
|
||
// Skuber uses Pekko logging, so the examples config uses the Pekko slf4j logger with logback backend | ||
val pekkoSlf4j = pekkoGroup %% "pekko-slf4j" % pekkoVersion | ||
val logback = "ch.qos.logback" % "logback-classic" % "1.4.6" % Runtime | ||
|
||
val scalaCheck = "org.scalacheck" %% "scalacheck" % "1.17.0" | ||
val specs2 = "org.specs2" %% "specs2-core" % "4.19.2" | ||
val scalaTest = "org.scalatest" %% "scalatest" % "3.2.15" | ||
val mockito = "org.mockito" % "mockito-core" % "4.6.1" | ||
val scalaTestMockito = "org.scalatestplus" %% "mockito-4-6" % "3.2.14.0" | ||
val akkaStreamTestKit = "com.typesafe.akka" %% "akka-stream-testkit" % akkaVersion | ||
val scalaTestMockito = "org.scalatestplus" %% "mockito-4-6" % "3.2.15.0" | ||
|
||
val snakeYaml = "org.yaml" % "snakeyaml" % "2.0" | ||
val commonsIO = "commons-io" % "commons-io" % "2.11.0" | ||
val commonsCodec = "commons-codec" % "commons-codec" % "1.15" | ||
|
||
// the client API request/response handing uses Akka Http | ||
val akkaHttp = "com.typesafe.akka" %% "akka-http" % "10.2.9" | ||
val akkaStream = "com.typesafe.akka" %% "akka-stream" % akkaVersion | ||
val akka = "com.typesafe.akka" %% "akka-actor" % akkaVersion | ||
|
||
// Skuber uses akka logging, so the examples config uses the akka slf4j logger with logback backend | ||
val akkaSlf4j = "com.typesafe.akka" %% "akka-slf4j" % akkaVersion | ||
val logback = "ch.qos.logback" % "logback-classic" % "1.4.4" % Runtime | ||
|
||
// the Json formatters are based on Play Json | ||
val playJson = "com.typesafe.play" %% "play-json" % "2.9.3" | ||
val playJson = "com.typesafe.play" %% "play-json" % "2.9.4" | ||
|
||
// Need Java 8 or later as the java.time package is used to represent K8S timestamps | ||
scalacOptions += "-target:jvm-1.8" | ||
|
||
scalacOptions in Test ++= Seq("-Yrangepos") | ||
Test / scalacOptions ++= Seq("-Yrangepos") | ||
|
||
ThisBuild / version := "2.6.7" | ||
ThisBuild / version := "3.0.0-beta1" | ||
|
||
sonatypeProfileName := "io.skuber" | ||
|
||
publishMavenStyle in ThisBuild := true | ||
ThisBuild / publishMavenStyle := true | ||
|
||
licenses in ThisBuild := Seq("APL2" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt")) | ||
ThisBuild / licenses := Seq("APL2" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt")) | ||
|
||
homepage in ThisBuild := Some(url("https://github.com/doriordan")) | ||
ThisBuild / homepage := Some(url("https://github.com/doriordan")) | ||
|
||
scmInfo in ThisBuild := Some( | ||
ThisBuild / scmInfo := Some( | ||
ScmInfo( | ||
url("https://github.com/doriordan/skuber"), | ||
"scm:[email protected]:doriordan/skuber.git" | ||
) | ||
) | ||
|
||
developers in ThisBuild := List(Developer(id="doriordan", name="David ORiordan", email="[email protected]", url=url("https://github.com/doriordan"))) | ||
ThisBuild / developers := List(Developer(id="doriordan", name="David ORiordan", email="[email protected]", url=url("https://github.com/doriordan"))) | ||
|
||
lazy val commonSettings = Seq( | ||
organization := "io.skuber", | ||
crossScalaVersions := Seq("2.12.17", "2.13.10"), | ||
scalaVersion := "2.13.10", | ||
publishTo := sonatypePublishToBundle.value, | ||
pomIncludeRepository := { _ => false }, | ||
Test / classLoaderLayeringStrategy := ClassLoaderLayeringStrategy.Flat | ||
Test / classLoaderLayeringStrategy := ClassLoaderLayeringStrategy.Flat, | ||
resolvers += "Apache Pekko Snapshots" at "https://repository.apache.org/content/groups/snapshots" | ||
) | ||
|
||
lazy val skuberSettings = Seq( | ||
name := "skuber", | ||
libraryDependencies ++= Seq( | ||
akkaHttp, akkaStream, playJson, snakeYaml, commonsIO, commonsCodec, | ||
pekkoHttp, pekkoStreams, playJson, snakeYaml, commonsIO, commonsCodec, | ||
scalaCheck % Test, specs2 % Test, mockito % Test, scalaTestMockito % Test, | ||
akkaStreamTestKit % Test, scalaTest % Test | ||
pekkoStreamsTestkit, scalaTest % Test | ||
).map(_.exclude("commons-logging", "commons-logging")) | ||
) | ||
|
||
// This explicit Pekko dependency for the example build is not strictly necessary (the necessary dependencies will be transitively | ||
// inherited from skuber dependency anyway) but clients might opt to explicitly specify such dependencies, for example to override version. | ||
val pekkoActors = pekkoGroup %% "pekko-actor" % pekkoVersion | ||
|
||
lazy val examplesSettings = Seq( | ||
name := "skuber-examples", | ||
libraryDependencies ++= Seq(akka, akkaSlf4j, logback) | ||
libraryDependencies ++= Seq(pekkoActors, pekkoSlf4j, logback) | ||
) | ||
|
||
// by default run the guestbook example when executing a fat examples JAR | ||
// by default run the deployment examples when executing a fat examples JAR | ||
lazy val examplesAssemblySettings = Seq( | ||
mainClass in assembly := Some("skuber.examples.guestbook.Guestbook") | ||
assembly / mainClass := Some("skuber.examples.deployment.DeploymentExamples") | ||
) | ||
|
||
publishArtifact in root := false | ||
root / publishArtifact := false | ||
|
||
lazy val root = (project in file(".")) | ||
.settings(commonSettings: _*) | ||
|
@@ -90,11 +99,11 @@ lazy val skuber= (project in file("client")) | |
commonSettings, | ||
skuberSettings, | ||
Defaults.itSettings, | ||
libraryDependencies += scalaTest % "it" | ||
libraryDependencies += scalaTest % "it", | ||
) | ||
|
||
lazy val examples = (project in file("examples")) | ||
.settings(commonSettings: _*) | ||
.settings(examplesSettings: _*) | ||
.settings(examplesAssemblySettings: _*) | ||
.dependsOn(skuber) | ||
.dependsOn(skuber) |
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 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
Oops, something went wrong.