Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
bump: Akka 23.10.0 dependencies (#291)
Browse files Browse the repository at this point in the history
* not updating 3 samples because they use cassandra-launcher and
  therefore require some more work
  * akka-sample-persistence-dc-java
  * akka-sample-persistence-dc-java
  * akka-sample-persistence-dc-scala

* JDK 17 in CI

* add missing resolver
* another missing resolver
* docs-gen seems to require jdk 11
  • Loading branch information
patriknw authored Nov 2, 2023
1 parent 7f4c636 commit 6e22130
Show file tree
Hide file tree
Showing 17 changed files with 91 additions and 67 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/build-docs-gen.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build and test

on:
pull_request:

jobs:
build-test:
name: Build docs-gen
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0

- name: Set up JDK 11
uses: coursier/[email protected]
with:
jvm: temurin:1.11

- name: Cache Coursier cache
uses: coursier/[email protected]

- name: Test docs gen
run: cd docs-gen && sbt paradox
14 changes: 5 additions & 9 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,17 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3.1.0
with:
# we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves
fetch-depth: 0

- name: Set up JDK 11
uses: olafurpg/setup-scala@v10
- name: Set up JDK 17
uses: coursier/setup-[email protected]
with:
java-version: [email protected].0
jvm: temurin:1.17.0

- name: Cache Coursier cache
uses: coursier/cache-action@v6.2
uses: coursier/cache-action@v6.4.0

- name: Test akka-sample-cluster-java
run: cd akka-sample-cluster-java && sbt multi-jvm:test
Expand Down Expand Up @@ -60,6 +59,3 @@ jobs:

- name: Test akka-sample-kafka-to-sharding-scala
run: cd akka-sample-kafka-to-sharding-scala && sbt test

- name: Test docs gen
run: cd docs-gen && sbt paradox
6 changes: 3 additions & 3 deletions akka-sample-cluster-java/build.sbt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import com.typesafe.sbt.SbtMultiJvm.multiJvmSettings
import com.typesafe.sbt.SbtMultiJvm.MultiJvmKeys.MultiJvm

val AkkaVersion = "2.8.5"
val AkkaDiagnosticsVersion = "2.0.1"
val AkkaVersion = "2.9.0"
val AkkaDiagnosticsVersion = "2.1.0"
val LogbackClassicVersion = "1.2.11"
val ScalaTestVersion = "3.1.1"

Expand All @@ -11,7 +11,7 @@ lazy val `akka-sample-cluster-java` = project
.settings(multiJvmSettings: _*)
.settings(
organization := "com.lightbend.akka.samples",
scalaVersion := "2.13.10",
scalaVersion := "2.13.12",
Compile / scalacOptions ++= Seq("-deprecation", "-feature", "-unchecked", "-Xlog-reflective-calls", "-Xlint"),
Compile / javacOptions ++= Seq("-parameters", "-Xlint:unchecked", "-Xlint:deprecation"),
run / javaOptions ++= Seq("-Xms128m", "-Xmx1024m", "-Djava.library.path=./target/native"),
Expand Down
7 changes: 3 additions & 4 deletions akka-sample-cluster-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<akka.version>2.8.5</akka.version>
<akka-diagnostics.version>2.0.1</akka-diagnostics.version>
<akka.version>2.9.0</akka.version>
<akka-diagnostics.version>2.1.0</akka-diagnostics.version>
</properties>

<repositories>
Expand Down Expand Up @@ -64,8 +64,7 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<release>17</release>
<fork>true</fork>
<compilerArgs>
<arg>-Xlint</arg>
Expand Down
6 changes: 3 additions & 3 deletions akka-sample-cluster-scala/build.sbt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import com.typesafe.sbt.SbtMultiJvm.multiJvmSettings
import com.typesafe.sbt.SbtMultiJvm.MultiJvmKeys.MultiJvm

val AkkaVersion = "2.8.5"
val AkkaDiagnosticsVersion = "2.0.1"
val AkkaVersion = "2.9.0"
val AkkaDiagnosticsVersion = "2.1.0"
val LogbackClassicVersion = "1.2.11"
val ScalaTestVersion = "3.1.1"

Expand All @@ -11,7 +11,7 @@ lazy val `akka-sample-cluster-scala` = project
.settings(multiJvmSettings: _*)
.settings(
organization := "com.lightbend.akka.samples",
scalaVersion := "2.13.10",
scalaVersion := "2.13.12",
Compile / scalacOptions ++= Seq("-deprecation", "-feature", "-unchecked", "-Xlog-reflective-calls", "-Xlint"),
Compile / javacOptions ++= Seq("-Xlint:unchecked", "-Xlint:deprecation"),
run / javaOptions ++= Seq("-Xms128m", "-Xmx1024m", "-Djava.library.path=./target/native"),
Expand Down
6 changes: 3 additions & 3 deletions akka-sample-distributed-data-java/build.sbt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import com.typesafe.sbt.SbtMultiJvm.multiJvmSettings
import com.typesafe.sbt.SbtMultiJvm.MultiJvmKeys.MultiJvm

val AkkaVersion = "2.8.5"
val AkkaDiagnosticsVersion = "2.0.1"
val AkkaVersion = "2.9.0"
val AkkaDiagnosticsVersion = "2.1.0"
val LogbackClassicVersion = "1.2.11"
val ScalaTestVersion = "3.1.1"

Expand All @@ -12,7 +12,7 @@ val `akka-sample-distributed-data-java` = project
.settings(
organization := "com.lightbend.akka.samples",
version := "1.0",
scalaVersion := "2.13.10",
scalaVersion := "2.13.12",
Compile / scalacOptions ++= Seq("-deprecation", "-feature", "-unchecked", "-Xlog-reflective-calls", "-Xlint"),
Compile / javacOptions ++= Seq("-parameters", "-Xlint:unchecked", "-Xlint:deprecation", "-Xdiags:verbose"),
javaOptions in run ++= Seq("-Xms128m", "-Xmx1024m"),
Expand Down
6 changes: 3 additions & 3 deletions akka-sample-distributed-data-scala/build.sbt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import com.typesafe.sbt.SbtMultiJvm.multiJvmSettings
import com.typesafe.sbt.SbtMultiJvm.MultiJvmKeys.MultiJvm

val AkkaVersion = "2.8.5"
val AkkaDiagnosticsVersion = "2.0.1"
val AkkaVersion = "2.9.0"
val AkkaDiagnosticsVersion = "2.1.0"
val LogbackClassicVersion = "1.2.11"
val ScalaTestVersion = "3.1.1"

Expand All @@ -12,7 +12,7 @@ val `akka-sample-distributed-data-scala` = project
.settings(
organization := "com.lightbend.akka.samples",
version := "1.0",
scalaVersion := "2.13.10",
scalaVersion := "2.13.12",
scalacOptions in Compile ++= Seq("-deprecation", "-feature", "-unchecked", "-Xlog-reflective-calls", "-Xlint"),
javacOptions in Compile ++= Seq("-Xlint:unchecked", "-Xlint:deprecation"),
javaOptions in run ++= Seq("-Xms128m", "-Xmx1024m"),
Expand Down
8 changes: 4 additions & 4 deletions akka-sample-distributed-workers-scala/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name := "akka-distributed-workers"

version := "1.0"

scalaVersion := "2.13.10"
val AkkaVersion = "2.8.5"
val CassandraPluginVersion = "1.1.1"
val AkkaDiagnosticsVersion = "2.0.1"
scalaVersion := "2.13.12"
val AkkaVersion = "2.9.0"
val CassandraPluginVersion = "1.2.0"
val AkkaDiagnosticsVersion = "2.1.0"
val LogbackClassicVersion = "1.2.11"
val ScalaTestVersion = "3.1.1"
val CommonIoVersion = "2.4"
Expand Down
7 changes: 3 additions & 4 deletions akka-sample-fsm-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<akka.version>2.8.5</akka.version>
<akka-diagnostics.version>2.0.1</akka-diagnostics.version>
<akka.version>2.9.0</akka.version>
<akka-diagnostics.version>2.1.0</akka-diagnostics.version>
</properties>

<groupId>com.lightbend.akka.samples</groupId>
Expand Down Expand Up @@ -48,8 +48,7 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<release>17</release>
<fork>true</fork>
<compilerArgs>
<arg>-Xlint</arg>
Expand Down
6 changes: 3 additions & 3 deletions akka-sample-fsm-scala/build.sbt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
organization := "com.lightbend.akka.samples"
name := "akka-sample-fsm-scala"

val AkkaVersion = "2.8.5"
val AkkaVersion = "2.9.0"
val LogbackClassicVersion = "1.2.11"
val AkkaDiagnosticsVersion = "2.0.1"
val AkkaDiagnosticsVersion = "2.1.0"

scalaVersion := "2.13.10"
scalaVersion := "2.13.12"

resolvers += "Akka library repository".at("https://repo.akka.io/maven")

Expand Down
20 changes: 13 additions & 7 deletions akka-sample-kafka-to-sharding-scala/build.sbt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
val AkkaVersion = "2.8.5"
val AlpakkaKafkaVersion = "4.0.2"
val AkkaManagementVersion = "1.4.0"
val AkkaHttpVersion = "10.5.2"
val AkkaVersion = "2.9.0"
val AlpakkaKafkaVersion = "5.0.0"
val AkkaManagementVersion = "1.5.0"
val AkkaHttpVersion = "10.6.0"
val EmbeddedKafkaVersion = "2.4.1.1"
val LogbackVersion = "1.2.11"

resolvers += "Akka library repository".at("https://repo.akka.io/maven")

ThisBuild / scalaVersion := "2.13.10"
ThisBuild / scalaVersion := "2.13.12"
ThisBuild / organization := "com.lightbend.akka.samples"
ThisBuild / scalacOptions in Compile ++= Seq(
"-deprecation",
Expand All @@ -30,6 +30,7 @@ lazy val `akka-sample-kafka-to-sharding` = project.in(file(".")).aggregate(produ
lazy val kafka = project
.in(file("kafka"))
.settings(
resolvers += "Akka library repository".at("https://repo.akka.io/maven"),
libraryDependencies ++= Seq(
"ch.qos.logback" % "logback-classic" % LogbackVersion,
"org.slf4j" % "log4j-over-slf4j" % "1.7.26",
Expand All @@ -40,6 +41,7 @@ lazy val client = project
.in(file("client"))
.enablePlugins(AkkaGrpcPlugin, JavaAgent)
.settings(
resolvers += "Akka library repository".at("https://repo.akka.io/maven"),
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-stream" % AkkaVersion,
"com.typesafe.akka" %% "akka-discovery" % AkkaVersion))
Expand All @@ -48,7 +50,9 @@ lazy val processor = project
.in(file("processor"))
.enablePlugins(AkkaGrpcPlugin, JavaAgent)
.settings(javaAgents += "org.mortbay.jetty.alpn" % "jetty-alpn-agent" % "2.0.9" % "runtime;test")
.settings(libraryDependencies ++= Seq(
.settings(
resolvers += "Akka library repository".at("https://repo.akka.io/maven"),
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-stream-kafka" % AlpakkaKafkaVersion,
"com.typesafe.akka" %% "akka-stream-kafka-cluster-sharding" % AlpakkaKafkaVersion,
"com.typesafe.akka" %% "akka-stream" % AkkaVersion,
Expand All @@ -66,7 +70,9 @@ lazy val processor = project
lazy val producer = project
.in(file("producer"))
.settings(PB.targets in Compile := Seq(scalapb.gen() -> (sourceManaged in Compile).value))
.settings(libraryDependencies ++= Seq(
.settings(
resolvers += "Akka library repository".at("https://repo.akka.io/maven"),
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-stream-kafka" % AlpakkaKafkaVersion,
"com.typesafe.akka" %% "akka-stream" % AkkaVersion,
"ch.qos.logback" % "logback-classic" % "1.2.11",
Expand Down
7 changes: 3 additions & 4 deletions akka-sample-persistence-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<akka.version>2.8.5</akka.version>
<akka-diagnostics.version>2.0.1</akka-diagnostics.version>
<akka.version>2.9.0</akka.version>
<akka-diagnostics.version>2.1.0</akka-diagnostics.version>
</properties>

<repositories>
Expand Down Expand Up @@ -75,8 +75,7 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<release>17</release>
<compilerArgs>
<arg>-Xlint:unchecked</arg>
<arg>-Xlint:deprecation</arg>
Expand Down
6 changes: 3 additions & 3 deletions akka-sample-persistence-scala/build.sbt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
organization := "com.lightbend.akka.samples"
name := "akka-sample-persistence-scala"

scalaVersion := "2.13.10"
val AkkaVersion = "2.8.5"
val AkkaDiagnosticsVersion = "2.0.1"
scalaVersion := "2.13.12"
val AkkaVersion = "2.9.0"
val AkkaDiagnosticsVersion = "2.1.0"
val LogbackClassicVersion = "1.2.11"
val ScalaTestVersion = "3.1.1"

Expand Down
6 changes: 3 additions & 3 deletions akka-sample-sharding-java/build.sbt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@

val AkkaVersion = "2.8.5"
val AkkaHttpVersion = "10.5.2"
val AkkaVersion = "2.9.0"
val AkkaHttpVersion = "10.6.0"
val LogbackVersion = "1.2.11"

resolvers += "Akka library repository".at("https://repo.akka.io/maven")

lazy val buildSettings = Seq(
organization := "com.lightbend.akka.samples",
scalaVersion := "2.13.10"
scalaVersion := "2.13.12"
)

lazy val commonJavacOptions = Seq(
Expand Down
9 changes: 4 additions & 5 deletions akka-sample-sharding-java/killrweather-fog/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<akka.version>2.8.5</akka.version>
<akka-http.version>10.5.2</akka-http.version>
<akka-diagnostics.version>2.0.1</akka-diagnostics.version>
<akka.version>2.9.0</akka.version>
<akka-http.version>10.6.0</akka-http.version>
<akka-diagnostics.version>2.1.0</akka-diagnostics.version>
</properties>

<repositories>
Expand Down Expand Up @@ -77,8 +77,7 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<release>17</release>
<compilerArgs>
<arg>-Xlint:unchecked</arg>
<arg>-Xlint:deprecation</arg>
Expand Down
9 changes: 4 additions & 5 deletions akka-sample-sharding-java/killrweather/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<akka.version>2.8.5</akka.version>
<akka-http.version>10.5.2</akka-http.version>
<akka-diagnostics.version>2.0.1</akka-diagnostics.version>
<akka.version>2.9.0</akka.version>
<akka-http.version>10.6.0</akka-http.version>
<akka-diagnostics.version>2.1.0</akka-diagnostics.version>
</properties>

<repositories>
Expand Down Expand Up @@ -81,8 +81,7 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<release>17</release>
<compilerArgs>
<arg>-Xlint:unchecked</arg>
<arg>-Xlint:deprecation</arg>
Expand Down
10 changes: 6 additions & 4 deletions akka-sample-sharding-scala/build.sbt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

val AkkaVersion = "2.8.5"
val AkkaHttpVersion = "10.5.2"
val AkkaDiagnostics = "2.0.1"
val AkkaVersion = "2.9.0"
val AkkaHttpVersion = "10.6.0"
val AkkaDiagnostics = "2.1.0"
val LogbackVersion = "1.2.11"

resolvers += "Akka library repository".at("https://repo.akka.io/maven")
Expand All @@ -22,7 +22,7 @@ lazy val commonJavacOptions = Seq(

lazy val commonSettings = Seq(
organization := "com.lightbend.akka.samples",
scalaVersion := "2.13.10",
scalaVersion := "2.13.12",
Compile / scalacOptions ++= commonScalacOptions,
Compile / javacOptions ++= commonJavacOptions,
run / javaOptions ++= Seq("-Xms128m", "-Xmx1024m"),
Expand All @@ -37,6 +37,7 @@ lazy val killrweather = project
.settings(commonSettings)
.settings(
mainClass in (Compile, run) := Some("sample.killrweather.KillrWeather"),
resolvers += "Akka library repository".at("https://repo.akka.io/maven"),
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-cluster-sharding-typed" % AkkaVersion,
"com.typesafe.akka" %% "akka-serialization-jackson" % AkkaVersion,
Expand All @@ -52,6 +53,7 @@ lazy val `killrweather-fog` = project
.settings(commonSettings)
.settings(
mainClass in (Compile, run) := Some("sample.killrweather.fog.Fog"),
resolvers += "Akka library repository".at("https://repo.akka.io/maven"),
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-actor-typed" % AkkaVersion,
"com.typesafe.akka" %% "akka-stream-typed" % AkkaVersion,
Expand Down

0 comments on commit 6e22130

Please sign in to comment.