Skip to content

Commit

Permalink
Merge pull request #723 from ihostage/bump-play
Browse files Browse the repository at this point in the history
Update `org.playframework.play` to `v3.1.0-4009e5a0-SNAPSHOT` (was `3.0.*`)
  • Loading branch information
mkurz authored Jun 29, 2024
2 parents e75a20a + eacfb91 commit 73948d2
Show file tree
Hide file tree
Showing 85 changed files with 190 additions and 66 deletions.
2 changes: 2 additions & 0 deletions java/chatroom/build.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
resolvers ++= Resolver.sonatypeOssRepos("snapshots")

lazy val root = (project in file("."))
.enablePlugins(PlayJava)
//.enablePlugins(PlayNettyServer).disablePlugins(PlayPekkoHttpServer) // uncomment to use the Netty backend
Expand Down
2 changes: 1 addition & 1 deletion java/chatroom/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
twirl = "2.0.7"
play = "3.0.1-03969c1e-SNAPSHOT"
play = "3.1.0-4009e5a0-SNAPSHOT"
junit = "4.13.2"
webjars-play = "3.0.0"
flot = "0.8.3-1"
Expand Down
3 changes: 2 additions & 1 deletion java/chatroom/project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
// The Play plugin
addSbtPlugin("org.playframework" % "sbt-plugin" % "3.0.3")
resolvers ++= Resolver.sonatypeOssRepos("snapshots")
addSbtPlugin("org.playframework" % "sbt-plugin" % "3.1.0-4009e5a0-SNAPSHOT")
2 changes: 2 additions & 0 deletions java/compile-di/build.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
resolvers ++= Resolver.sonatypeOssRepos("snapshots")

name := """play-java-compile-di-example"""

version := "1.0-SNAPSHOT"
Expand Down
3 changes: 2 additions & 1 deletion java/compile-di/project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
addSbtPlugin("org.playframework" % "sbt-plugin" % "3.0.3")
resolvers ++= Resolver.sonatypeOssRepos("snapshots")
addSbtPlugin("org.playframework" % "sbt-plugin" % "3.1.0-4009e5a0-SNAPSHOT")
9 changes: 9 additions & 0 deletions java/dagger2/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import play.TemplateImports
import play.gradle.plugin.PlayPlugin

plugins {
Expand All @@ -22,6 +23,14 @@ dependencies {
testImplementation("org.playframework:play-test_$scalaVersion")
}

sourceSets {
main {
twirl {
templateImports.set(TemplateImports.defaultJavaTemplateImports)
}
}
}

tasks.withType<ScalaCompile>().configureEach {
options.compilerArgs.addAll(listOf("-Xlint:unchecked", "-Xlint:deprecation", "-Werror"))
}
Expand Down
2 changes: 2 additions & 0 deletions java/dagger2/build.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
resolvers ++= Resolver.sonatypeOssRepos("snapshots")

lazy val root = (project in file("."))
.enablePlugins(PlayJava)
//.enablePlugins(PlayNettyServer).disablePlugins(PlayPekkoHttpServer) // uncomment to use the Netty backend
Expand Down
2 changes: 1 addition & 1 deletion java/dagger2/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
twirl = "2.0.7"
play = "3.0.1-03969c1e-SNAPSHOT"
play = "3.1.0-4009e5a0-SNAPSHOT"
junit = "4.13.2"
dagger = "2.51.1"

Expand Down
3 changes: 2 additions & 1 deletion java/dagger2/project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
// The Play plugin
addSbtPlugin("org.playframework" % "sbt-plugin" % "3.0.3")
resolvers ++= Resolver.sonatypeOssRepos("snapshots")
addSbtPlugin("org.playframework" % "sbt-plugin" % "3.1.0-4009e5a0-SNAPSHOT")
9 changes: 9 additions & 0 deletions java/ebean/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import play.TemplateImports
import play.gradle.plugin.PlayPlugin

plugins {
Expand Down Expand Up @@ -27,6 +28,14 @@ dependencies {
testImplementation(libs.awaitility)
}

sourceSets {
main {
twirl {
templateImports.set(TemplateImports.defaultJavaTemplateImports)
}
}
}

tasks.withType<ScalaCompile>().configureEach {
options.compilerArgs.addAll(listOf("-Xlint:unchecked", "-Xlint:deprecation", "-Werror"))
}
Expand Down
2 changes: 2 additions & 0 deletions java/ebean/build.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
resolvers ++= Resolver.sonatypeOssRepos("snapshots")

lazy val root = (project in file("."))
.enablePlugins(PlayJava, PlayEbean)
//.enablePlugins(PlayNettyServer).disablePlugins(PlayPekkoHttpServer) // uncomment to use the Netty backend
Expand Down
2 changes: 1 addition & 1 deletion java/ebean/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
twirl = "2.0.7"
play = "3.0.1-03969c1e-SNAPSHOT"
play = "3.1.0-4009e5a0-SNAPSHOT"
play-ebean = "8.3.0"
ebean = "15.1.0" # Sync with Play Ebean version https://github.com/playframework/play-ebean/blob/main/project/Dependencies.scala#L19
h2 = "2.2.224"
Expand Down
3 changes: 2 additions & 1 deletion java/ebean/project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// The Play plugin
addSbtPlugin("org.playframework" % "sbt-plugin" % "3.0.3")
resolvers ++= Resolver.sonatypeOssRepos("snapshots")
addSbtPlugin("org.playframework" % "sbt-plugin" % "3.1.0-4009e5a0-SNAPSHOT")

addSbtPlugin("org.playframework" % "sbt-play-ebean" % "8.3.0")
9 changes: 9 additions & 0 deletions java/fileupload/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import play.TemplateImports
import play.gradle.plugin.PlayPlugin

plugins {
Expand All @@ -20,6 +21,14 @@ dependencies {
testImplementation("org.playframework:play-test_$scalaVersion")
}

sourceSets {
main {
twirl {
templateImports.set(TemplateImports.defaultJavaTemplateImports)
}
}
}

tasks.withType<ScalaCompile>().configureEach {
options.compilerArgs.addAll(listOf("-Xlint:unchecked", "-Xlint:deprecation", "-Werror"))
}
Expand Down
2 changes: 2 additions & 0 deletions java/fileupload/build.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
resolvers ++= Resolver.sonatypeOssRepos("snapshots")

lazy val root = (project in file("."))
.enablePlugins(PlayJava)
//.enablePlugins(PlayNettyServer).disablePlugins(PlayPekkoHttpServer) // uncomment to use the Netty backend
Expand Down
3 changes: 2 additions & 1 deletion java/fileupload/project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
// The Play plugin
addSbtPlugin("org.playframework" % "sbt-plugin" % "3.0.3")
resolvers ++= Resolver.sonatypeOssRepos("snapshots")
addSbtPlugin("org.playframework" % "sbt-plugin" % "3.1.0-4009e5a0-SNAPSHOT")
9 changes: 9 additions & 0 deletions java/forms/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import play.TemplateImports
import play.gradle.plugin.PlayPlugin

plugins {
Expand All @@ -20,6 +21,14 @@ dependencies {
testImplementation("org.playframework:play-test_$scalaVersion")
}

sourceSets {
main {
twirl {
templateImports.set(TemplateImports.defaultJavaTemplateImports)
}
}
}

tasks.withType<ScalaCompile>().configureEach {
options.compilerArgs.addAll(listOf("-Xlint:unchecked", "-Xlint:deprecation", "-Werror"))
}
Expand Down
4 changes: 3 additions & 1 deletion java/forms/build.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
resolvers ++= Resolver.sonatypeOssRepos("snapshots")

name := """play-java-forms-example"""

version := "1.0-SNAPSHOT"
Expand All @@ -18,4 +20,4 @@ javacOptions ++= Seq(
"-Xlint:unchecked",
"-Xlint:deprecation",
"-Werror"
)
)
2 changes: 1 addition & 1 deletion java/forms/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
twirl = "2.0.7"
play = "3.0.1-03969c1e-SNAPSHOT"
play = "3.1.0-4009e5a0-SNAPSHOT"
junit = "4.13.2"

[libraries]
Expand Down
3 changes: 2 additions & 1 deletion java/forms/project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
// The Play plugin
addSbtPlugin("org.playframework" % "sbt-plugin" % "3.0.3")
resolvers ++= Resolver.sonatypeOssRepos("snapshots")
addSbtPlugin("org.playframework" % "sbt-plugin" % "3.1.0-4009e5a0-SNAPSHOT")
2 changes: 2 additions & 0 deletions java/grpc/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import play.grpc.gen.javadsl.{PlayJavaClientCodeGenerator, PlayJavaServerCodeGen
import com.typesafe.sbt.packager.docker.{Cmd, CmdLike, DockerAlias, ExecCmd}
import play.java.grpc.sample.BuildInfo

resolvers ++= Resolver.sonatypeOssRepos("snapshots")

name := "play-java-grpc-example"
version := "1.0-SNAPSHOT"

Expand Down
3 changes: 2 additions & 1 deletion java/grpc/project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ val playGrpcV = "0.12.1"
buildInfoKeys := Seq[BuildInfoKey]("playGrpcVersion" -> playGrpcV)
buildInfoPackage := "play.java.grpc.sample"

addSbtPlugin("org.playframework" % "sbt-plugin" % "3.0.3")
resolvers ++= Resolver.sonatypeOssRepos("snapshots")
addSbtPlugin("org.playframework" % "sbt-plugin" % "3.1.0-4009e5a0-SNAPSHOT")

addSbtPlugin("com.lightbend.paradox" % "sbt-paradox" % "0.10.7")

Expand Down
2 changes: 2 additions & 0 deletions java/hello-world/build.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
resolvers ++= Resolver.sonatypeOssRepos("snapshots")

name := """play-java-hello-world-tutorial"""
organization := "com.example"

Expand Down
2 changes: 1 addition & 1 deletion java/hello-world/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
twirl = "2.0.7"
play = "3.0.1-03969c1e-SNAPSHOT"
play = "3.1.0-4009e5a0-SNAPSHOT"
junit = "4.13.2"

[libraries]
Expand Down
3 changes: 2 additions & 1 deletion java/hello-world/project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
addSbtPlugin("org.playframework" % "sbt-plugin" % "3.0.3")
resolvers ++= Resolver.sonatypeOssRepos("snapshots")
addSbtPlugin("org.playframework" % "sbt-plugin" % "3.1.0-4009e5a0-SNAPSHOT")
2 changes: 2 additions & 0 deletions java/jpa/build.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
resolvers ++= Resolver.sonatypeOssRepos("snapshots")

lazy val root = (project in file("."))
.enablePlugins(PlayJava)
//.enablePlugins(PlayNettyServer).disablePlugins(PlayPekkoHttpServer) // uncomment to use the Netty backend
Expand Down
3 changes: 2 additions & 1 deletion java/jpa/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[versions]
twirl = "2.0.7"
play = "3.0.1-03969c1e-SNAPSHOT"
play = "3.1.0-4009e5a0-SNAPSHOT"
#play = "3.0.1-03969c1e-SNAPSHOT"
play-ws = "3.0.0"
node = "7.0.2"
h2 = "2.2.224"
Expand Down
3 changes: 2 additions & 1 deletion java/jpa/project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// The Play plugin
addSbtPlugin("org.playframework" % "sbt-plugin" % "3.0.3")
resolvers ++= Resolver.sonatypeOssRepos("snapshots")
addSbtPlugin("org.playframework" % "sbt-plugin" % "3.1.0-4009e5a0-SNAPSHOT")

// Web plugins
addSbtPlugin("com.github.sbt" % "sbt-coffeescript" % "2.0.1")
Expand Down
4 changes: 2 additions & 2 deletions java/jpa/test/UnitTest.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import com.typesafe.config.Config;
import com.typesafe.config.ConfigFactory;
import controllers.PersonController;
import jakarta.validation.Validation;
import jakarta.validation.ValidatorFactory;
import models.Person;
import models.PersonRepository;
import org.hibernate.validator.messageinterpolation.ParameterMessageInterpolator;
Expand All @@ -18,8 +20,6 @@
import play.test.Helpers;
import play.twirl.api.Content;

import javax.validation.Validation;
import javax.validation.ValidatorFactory;
import java.util.concurrent.CompletionStage;
import java.util.concurrent.ForkJoinPool;

Expand Down
2 changes: 2 additions & 0 deletions java/pekko-cluster/build.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import play.core.PlayVersion

resolvers ++= Resolver.sonatypeOssRepos("snapshots")

name := """play-java-pekko-cluster-example"""
organization := "com.example"

Expand Down
4 changes: 2 additions & 2 deletions java/pekko-cluster/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[versions]
twirl = "2.0.7"
play = "3.0.1-03969c1e-SNAPSHOT"
play = "3.1.0-4009e5a0-SNAPSHOT"
junit = "4.13.2"
pekko = "1.0.2"
pekko = "1.0.3"

[libraries]
junit = { group = "junit", name = "junit", version.ref = "junit" }
Expand Down
3 changes: 2 additions & 1 deletion java/pekko-cluster/project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
// The Play plugin
addSbtPlugin("org.playframework" % "sbt-plugin" % "3.0.3")
resolvers ++= Resolver.sonatypeOssRepos("snapshots")
addSbtPlugin("org.playframework" % "sbt-plugin" % "3.1.0-4009e5a0-SNAPSHOT")
2 changes: 2 additions & 0 deletions java/rest-api/build.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
resolvers ++= Resolver.sonatypeOssRepos("snapshots")

lazy val scala213 = "2.13.14"
lazy val scala3 = "3.3.3"

Expand Down
3 changes: 2 additions & 1 deletion java/rest-api/project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// The Play plugin
addSbtPlugin("org.playframework" % "sbt-plugin" % "3.0.3")
resolvers ++= Resolver.sonatypeOssRepos("snapshots")
addSbtPlugin("org.playframework" % "sbt-plugin" % "3.1.0-4009e5a0-SNAPSHOT")

// Load testing tool:
// https://gatling.io/docs/gatling/reference/current/extensions/sbt_plugin/
Expand Down
2 changes: 2 additions & 0 deletions java/starter/build.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
resolvers ++= Resolver.sonatypeOssRepos("snapshots")

lazy val root = (project in file("."))
.enablePlugins(PlayJava)
//.enablePlugins(PlayNettyServer).disablePlugins(PlayPekkoHttpServer) // uncomment to use the Netty backend
Expand Down
2 changes: 1 addition & 1 deletion java/starter/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
twirl = "2.0.7"
play = "3.0.1-03969c1e-SNAPSHOT"
play = "3.1.0-4009e5a0-SNAPSHOT"
junit = "4.13.2"
h2 = "2.2.224"
assertj = "3.26.0"
Expand Down
3 changes: 2 additions & 1 deletion java/starter/project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
// The Play plugin
addSbtPlugin("org.playframework" % "sbt-plugin" % "3.0.3")
resolvers ++= Resolver.sonatypeOssRepos("snapshots")
addSbtPlugin("org.playframework" % "sbt-plugin" % "3.1.0-4009e5a0-SNAPSHOT")
2 changes: 2 additions & 0 deletions java/streaming/build.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
resolvers ++= Resolver.sonatypeOssRepos("snapshots")

name := "play-java-streaming-example"

version := "1.0-SNAPSHOT"
Expand Down
3 changes: 2 additions & 1 deletion java/streaming/project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
// Use the Play sbt plugin for Play projects
addSbtPlugin("org.playframework" % "sbt-plugin" % "3.0.3")
resolvers ++= Resolver.sonatypeOssRepos("snapshots")
addSbtPlugin("org.playframework" % "sbt-plugin" % "3.1.0-4009e5a0-SNAPSHOT")
2 changes: 2 additions & 0 deletions java/websocket/build.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
resolvers ++= Resolver.sonatypeOssRepos("snapshots")

lazy val root = (project in file("."))
.enablePlugins(PlayJava)
//.enablePlugins(PlayNettyServer).disablePlugins(PlayPekkoHttpServer) // uncomment to use the Netty backend
Expand Down
18 changes: 9 additions & 9 deletions java/websocket/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion java/websocket/project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
addSbtPlugin("org.playframework" % "sbt-plugin" % "3.0.3")
resolvers ++= Resolver.sonatypeOssRepos("snapshots")
addSbtPlugin("org.playframework" % "sbt-plugin" % "3.1.0-4009e5a0-SNAPSHOT")

addSbtPlugin("com.github.sbt" % "sbt-less" % "2.0.1")

Expand Down
2 changes: 2 additions & 0 deletions scala/anorm/build.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
resolvers ++= Resolver.sonatypeOssRepos("snapshots")

lazy val root = (project in file("."))
.enablePlugins(PlayScala)
//.enablePlugins(PlayNettyServer).disablePlugins(PlayPekkoHttpServer) // uncomment to use the Netty backend
Expand Down
2 changes: 1 addition & 1 deletion scala/anorm/project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// The Play plugin
addSbtPlugin("org.playframework" % "sbt-plugin" % "3.0.3")
addSbtPlugin("org.playframework" % "sbt-plugin" % "3.1.0-4009e5a0-SNAPSHOT")
Loading

0 comments on commit 73948d2

Please sign in to comment.