Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

guice 7.0.0 (was 6.0.0) #422

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
1e8d50e
import akka. -> import org.apache.pekko.
mkurz Oct 6, 2023
98270d0
Play 3.0.0 M3
mkurz Oct 6, 2023
fe2dec7
akka -> pekko
mkurz Oct 8, 2023
73581c8
More Akka to Pekko migration
mkurz Oct 18, 2023
831eab8
Rename play-java-akka-cluster-example -> play-java-pekko-cluster-example
mkurz Oct 18, 2023
487e851
webjars-play 3.0.0-M3
mkurz Oct 18, 2023
38b6b3c
com.typesafe.play -> org.playframework
mkurz Oct 18, 2023
ec56ed6
play-ebean under org.playframework
mkurz Oct 18, 2023
943260e
play-slick under org.playframework now
mkurz Oct 18, 2023
b293a9b
No more for3Use2_13
mkurz Oct 18, 2023
42656af
"scalatestplus-play" % "7.0.0-M1"
mkurz Oct 19, 2023
f5b0c79
More akka -> pekko
mkurz Oct 19, 2023
108c50c
Temporary disable grpc samples
mkurz Oct 18, 2023
88e51fd
Temporary disable anorm example
mkurz Oct 18, 2023
5c48da9
Merge pull request #415 from mkurz/play3
mkurz Oct 19, 2023
b4f38be
mockito-core 5.6.0 (was 5.5.0)
scala-steward Oct 20, 2023
75aafda
hibernate-core 6.3.1.Final (was 6.3.0.Final)
scala-steward Oct 20, 2023
6f51057
log4j-api, log4j-core, ... 2.21.0 (was 2.20.0)
scala-steward Oct 20, 2023
a59ff15
gatling-sbt 4.6.0 (was 4.5.0)
scala-steward Oct 20, 2023
7438366
dagger, dagger-compiler 2.48.1 (was 2.48)
scala-steward Oct 20, 2023
a27d648
h2 1.4.200 (was 1.4.196)
scala-steward Oct 20, 2023
aa7f90b
metrics-core 4.2.21 (was 4.2.19)
scala-steward Oct 20, 2023
3320d1c
jsoup 1.16.2 (was 1.16.1)
scala-steward Oct 20, 2023
e904673
Merge pull request #431 from mkurz/dep_updates
mkurz Oct 22, 2023
5c41aa3
Use Pekko ports
mkurz Oct 22, 2023
181d53a
Merge pull request #432 from mkurz/pekko_ports
mkurz Oct 22, 2023
4bbca43
Move scala steward conf into .github folder
mkurz Oct 23, 2023
58bc7c1
Merge pull request #433 from mkurz/scala-steward_mv
mkurz Oct 23, 2023
f437b41
log4j-api 2.21.1 (was 2.21.0)
scala-steward Oct 25, 2023
bd79f4c
sbt 1.9.7 (was 1.9.6)
scala-steward Oct 25, 2023
566f2d6
Merge pull request #440 from mkurz/3.0.x_patches
mkurz Oct 25, 2023
80bdee1
Play 3.0.0
mkurz Oct 25, 2023
12ffeee
webjars-play 3.0.0
mkurz Oct 25, 2023
cf501cb
Merge pull request #441 from mkurz/play3
mkurz Oct 25, 2023
8652c62
scalatestplus-play 7.0.0
mkurz Oct 27, 2023
2cfac91
Merge pull request #443 from mkurz/stpp7.0.0
mkurz Oct 27, 2023
17aa9bd
Remove developer.lightbend.com
mkurz Nov 1, 2023
bc91619
adoptium.net instead of oracle
mkurz Nov 1, 2023
38e4b47
Merge pull request #445 from mkurz/rm_developer.lightbend.com
mkurz Nov 1, 2023
b898929
Correct branch in workflow
mkurz Nov 2, 2023
cd400c9
Merge pull request #447 from mkurz/correct_branch
mkurz Nov 2, 2023
985ebd5
Upgrade play-slick
mkurz Nov 2, 2023
c2faaf9
Merge pull request #448 from mkurz/play-slick-6
mkurz Nov 2, 2023
e884039
Gradle support preparation
ihostage Dec 1, 2023
1f581bc
Merge pull request #463 from ihostage/preparation-gradle
ihostage Dec 1, 2023
0ef52d2
Remove telemetry examples
mkurz Dec 12, 2023
872a0b3
Merge pull request #481 from mkurz/rm_telemetry-examples
mkurz Dec 12, 2023
91ccdbe
Play 3.0.1
mkurz Dec 19, 2023
4ab5a7d
sbt 1.9.8
mkurz Dec 19, 2023
3dc6c39
Merge pull request #487 from mkurz/play301
mkurz Dec 19, 2023
368ac27
play-java-streaming-example: Add csp nonce
mkurz Dec 12, 2023
51d3943
Merge pull request #483 from mkurz/fix-play-java-streaming-example
mkurz Dec 19, 2023
2870924
Use eclipse-temurin:11-alpine
mkurz Mar 9, 2023
300a4ff
Merge pull request #490 from playframework/mergify/bp/3.0.x/pr-291
mergify[bot] Dec 27, 2023
0382df3
[3.0.x] Update Pekko/Play gRPC
ihostage Dec 15, 2023
ee582cc
Merge pull request #492 from ihostage/play-grpc-3
mkurz Jan 9, 2024
7ab4bd8
Re-enable sbt-rjs and disable http port an example
mkurz Jan 10, 2024
9f372ad
Merge pull request #352 from mkurz/revert_changes
mkurz Jan 10, 2024
6d15cdc
guice 7.0.0 (was 6.0.0)
scala-steward Jan 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .scala-steward.conf β†’ .github/scala-steward.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pullRequests.grouping = [
]

buildRoots = [
"play-java-akka-cluster-example",
"play-java-pekko-cluster-example",
"play-java-chatroom-example",
"play-java-compile-di-example",
"play-java-dagger2-example",
Expand All @@ -20,7 +20,6 @@ buildRoots = [
"play-java-rest-api-example",
"play-java-starter-example",
"play-java-streaming-example",
"play-java-telemetry-example",
"play-java-websocket-example",
"play-scala-anorm-example",
"play-scala-chatroom-example",
Expand All @@ -37,7 +36,6 @@ buildRoots = [
"play-scala-slick-example",
"play-scala-starter-example",
"play-scala-streaming-example",
"play-scala-telemetry-example",
"play-scala-tls-example",
"play-scala-websocket-example"
]
14 changes: 12 additions & 2 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

push:
branches:
- 2.9.x # Check branch after merge
- 3.0.x # Check branch after merge

concurrency:
# Only run once for latest commit per ref and cancel other (previous) runs.
Expand All @@ -20,7 +20,7 @@ jobs:
# cmd: sbt validateCode

tests:
name: Tests
name: Sbt Tests
# needs:
# - "check-code-style"
uses: playframework/.github/.github/workflows/cmd.yml@v3
Expand All @@ -31,9 +31,19 @@ jobs:
# sudo add-apt-repository -y ppa:ondrej/php && sudo apt-get -qq update && sudo apt-get install -y libsodium-dev # for secure session examples
./test.sh

gradle-tests:
name: Gradle Tests
uses: playframework/.github/.github/workflows/cmd.yml@v3
with:
java: 17, 11
scala: 2.13.x, 3.x
cmd: |
./test-gradle.sh

finish:
name: Finish
if: github.event_name == 'pull_request'
needs: # Should be last
- "tests"
- "gradle-tests"
uses: playframework/.github/.github/workflows/rtm.yml@v3
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,7 @@ bin/

#general
*.class

# Gradle
.gradle
build
82 changes: 0 additions & 82 deletions play-java-akka-cluster-example/README.md

This file was deleted.

10 changes: 0 additions & 10 deletions play-java-akka-cluster-example/app/services/CborSerializable.java

This file was deleted.

23 changes: 0 additions & 23 deletions play-java-akka-cluster-example/build.sbt

This file was deleted.

8 changes: 0 additions & 8 deletions play-java-akka-cluster-example/conf/cluster.conf

This file was deleted.

11 changes: 0 additions & 11 deletions play-java-akka-cluster-example/conf/local-shared.conf

This file was deleted.

4 changes: 0 additions & 4 deletions play-java-akka-cluster-example/conf/serialization.conf

This file was deleted.

1 change: 0 additions & 1 deletion play-java-akka-cluster-example/project/build.properties

This file was deleted.

2 changes: 0 additions & 2 deletions play-java-akka-cluster-example/project/plugins.sbt

This file was deleted.

2 changes: 1 addition & 1 deletion play-java-chatroom-example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This is a simple chatroom using Play and Websockets with the Java API.

This project makes use of [dynamic streams](http://doc.akka.io/docs/akka/2.6/java/stream/stream-dynamic.html) from Akka Streams, notably `BroadcastHub` and `MergeHub`. By [combining MergeHub and BroadcastHub](https://doc.akka.io/docs/akka/2.6/stream/stream-dynamic.html?language=java#dynamic-fan-in-and-fan-out-with-mergehub-broadcasthub-and-partitionhub), you can get publish/subscribe functionality.
This project makes use of [dynamic streams](https://pekko.apache.org/docs/pekko/current/java/stream/stream-dynamic.html) from Pekko Streams, notably `BroadcastHub` and `MergeHub`. By [combining MergeHub and BroadcastHub](https://pekko.apache.org/docs/pekko/current/stream/stream-dynamic.html?language=java#dynamic-fan-in-and-fan-out-with-mergehub-broadcasthub-and-partitionhub), you can get publish/subscribe functionality.

## The good bit

Expand Down
16 changes: 8 additions & 8 deletions play-java-chatroom-example/app/controllers/HomeController.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package controllers;

import akka.NotUsed;
import akka.actor.ActorSystem;
import akka.event.Logging;
import akka.event.LoggingAdapter;
import akka.japi.Pair;
import akka.japi.pf.PFBuilder;
import akka.stream.Materializer;
import akka.stream.javadsl.*;
import org.apache.pekko.NotUsed;
import org.apache.pekko.actor.ActorSystem;
import org.apache.pekko.event.Logging;
import org.apache.pekko.event.LoggingAdapter;
import org.apache.pekko.japi.Pair;
import org.apache.pekko.japi.pf.PFBuilder;
import org.apache.pekko.stream.Materializer;
import org.apache.pekko.stream.javadsl.*;
import org.webjars.play.WebJarsUtil;
import play.libs.F;
import play.mvc.*;
Expand Down
2 changes: 1 addition & 1 deletion play-java-chatroom-example/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ lazy val root = (project in file("."))
crossScalaVersions := Seq("2.13.12", "3.3.1"),
scalaVersion := crossScalaVersions.value.head,
libraryDependencies ++= Seq(
"org.webjars" %% "webjars-play" % "2.9.0-RC2",
"org.webjars" %% "webjars-play" % "3.0.1",
"org.webjars" % "flot" % "0.8.3",
"org.webjars" % "bootstrap" % "3.4.1",
guice,
Expand Down
8 changes: 4 additions & 4 deletions play-java-chatroom-example/conf/application.conf
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Enable richer akka logging
akka {
loggers = ["akka.event.slf4j.Slf4jLogger"]
// Enable richer pekko logging
pekko {
loggers = ["org.apache.pekko.event.slf4j.Slf4jLogger"]
loglevel = "DEBUG"
logging-filter = "akka.event.slf4j.Slf4jLoggingFilter"
logging-filter = "org.apache.pekko.event.slf4j.Slf4jLoggingFilter"
}

// https://www.playframework.com/documentation/latest/SecurityHeaders
Expand Down
2 changes: 1 addition & 1 deletion play-java-chatroom-example/project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.9.6
sbt.version=1.9.8
2 changes: 1 addition & 1 deletion play-java-chatroom-example/project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// The Play plugin
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.9.0-RC2")
addSbtPlugin("org.playframework" % "sbt-plugin" % "3.0.1")
2 changes: 1 addition & 1 deletion play-java-compile-di-example/project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.9.6
sbt.version=1.9.8
2 changes: 1 addition & 1 deletion play-java-compile-di-example/project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.9.0-RC2")
addSbtPlugin("org.playframework" % "sbt-plugin" % "3.0.1")
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import play.ApplicationLoader;
import play.BuiltInComponentsFromContext;
import play.api.routing.Router;
import play.components.AkkaComponents;
import play.components.PekkoComponents;
import play.components.BodyParserComponents;
import play.controllers.AssetsComponents;
import play.core.j.DefaultJavaHandlerComponents;
Expand Down
2 changes: 1 addition & 1 deletion play-java-dagger2-example/app/filters/LoggingFilter.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package filters;

import akka.stream.Materializer;
import org.apache.pekko.stream.Materializer;
import org.slf4j.LoggerFactory;
import play.mvc.Filter;
import play.mvc.Http;
Expand Down
4 changes: 2 additions & 2 deletions play-java-dagger2-example/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ lazy val root = (project in file("."))
scalaVersion := crossScalaVersions.value.head,
libraryDependencies ++= Seq(
ws,
"com.google.dagger" % "dagger" % "2.48",
"com.google.dagger" % "dagger-compiler" % "2.48"
"com.google.dagger" % "dagger" % "2.48.1",
"com.google.dagger" % "dagger-compiler" % "2.48.1"
),
// move the java annotation code into generated directory
(Compile / javacOptions) := { (Compile / managedSourceDirectories).value.head.mkdirs(); javacOptions.value },
Expand Down
2 changes: 1 addition & 1 deletion play-java-dagger2-example/project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.9.6
sbt.version=1.9.8
2 changes: 1 addition & 1 deletion play-java-dagger2-example/project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// The Play plugin
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.9.0-RC2")
addSbtPlugin("org.playframework" % "sbt-plugin" % "3.0.1")
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package repository;

import akka.actor.ActorSystem;
import org.apache.pekko.actor.ActorSystem;
import play.libs.concurrent.CustomExecutionContext;

import javax.inject.Inject;
Expand Down
2 changes: 1 addition & 1 deletion play-java-ebean-example/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ lazy val root = (project in file("."))
"com.h2database" % "h2" % "2.2.224",
"org.awaitility" % "awaitility" % "3.1.6" % Test,
"org.assertj" % "assertj-core" % "3.12.2" % Test,
"org.mockito" % "mockito-core" % "5.5.0" % Test,
"org.mockito" % "mockito-core" % "5.6.0" % Test,
),
(Test / testOptions) += Tests.Argument(TestFrameworks.JUnit, "-a", "-v"),
javacOptions ++= Seq("-Xlint:unchecked", "-Xlint:deprecation", "-Werror")
Expand Down
2 changes: 1 addition & 1 deletion play-java-ebean-example/project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.9.6
sbt.version=1.9.8
4 changes: 2 additions & 2 deletions play-java-ebean-example/project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// The Play plugin
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.9.0-RC2")
addSbtPlugin("org.playframework" % "sbt-plugin" % "3.0.1")

addSbtPlugin("com.typesafe.play" % "sbt-play-ebean" % "7.0.0-RC2")
addSbtPlugin("org.playframework" % "sbt-play-ebean" % "8.0.0-M1")
4 changes: 2 additions & 2 deletions play-java-fileupload-example/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Play File Upload using a custom BodyParser

This is a sample project that shows how to upload a file through Akka Streams using a custom BodyParser using Akka Streams using the Java API.
This is a sample project that shows how to upload a file through Pekko Streams using a custom BodyParser using Pekko Streams using the Java API.

## Default MultipartFormData Body Parser

Expand Down Expand Up @@ -83,7 +83,7 @@ class MyMultipartFormDataBodyParser extends DelegatingMultipartFormDataBodyParse
}
```

The core Accumulator is generated from an `akka.streams.FileIO` sink which writes out bytes to the filesystem, and exposes a CompletionStage when the write operation has been completed.
The core Accumulator is generated from an `org.apache.pekko.streams.FileIO` sink which writes out bytes to the filesystem, and exposes a CompletionStage when the write operation has been completed.

Because this code delegates to the Scala API implementation, the underlying `DelegatingMultipartFormDataBodyParser<A>` exposes an abstract method:

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package controllers;

import akka.stream.IOResult;
import akka.stream.Materializer;
import akka.stream.javadsl.FileIO;
import akka.stream.javadsl.Sink;
import akka.util.ByteString;
import org.apache.pekko.stream.IOResult;
import org.apache.pekko.stream.Materializer;
import org.apache.pekko.stream.javadsl.FileIO;
import org.apache.pekko.stream.javadsl.Sink;
import org.apache.pekko.util.ByteString;
import play.core.parsers.Multipart;
import play.http.HttpErrorHandler;
import play.libs.streams.Accumulator;
Expand Down
2 changes: 1 addition & 1 deletion play-java-fileupload-example/project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.9.6
sbt.version=1.9.8
2 changes: 1 addition & 1 deletion play-java-fileupload-example/project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// The Play plugin
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.9.0-RC2")
addSbtPlugin("org.playframework" % "sbt-plugin" % "3.0.1")
Loading
Loading