Skip to content

Commit 374ce8f

Browse files
authored
Merge pull request #298 from mkurz/org.playframework
Switch to org.playframework
2 parents ec0979e + d7f994a commit 374ce8f

File tree

8 files changed

+20
-20
lines changed

8 files changed

+20
-20
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
[![OpenCollective](https://img.shields.io/opencollective/all/playframework?label=financial%20contributors&logo=open-collective)](https://opencollective.com/playframework)
1010

1111
[![Build Status](https://github.com/playframework/play-mailer/actions/workflows/build-test.yml/badge.svg)](https://github.com/playframework/play-mailer/actions/workflows/build-test.yml)
12-
[![Maven](https://img.shields.io/maven-central/v/com.typesafe.play/play-mailer_2.13.svg?logo=apache-maven)](https://mvnrepository.com/artifact/com.typesafe.play/play-mailer_2.13)
12+
[![Maven](https://img.shields.io/maven-central/v/org.playframework/play-mailer_2.13.svg?logo=apache-maven)](https://mvnrepository.com/artifact/org.playframework/play-mailer_2.13)
1313
[![Repository size](https://img.shields.io/github/repo-size/playframework/play-mailer.svg?logo=git)](https://github.com/playframework/play-mailer)
1414
[![Scala Steward badge](https://img.shields.io/badge/Scala_Steward-helping-blue.svg?style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAQCAMAAAARSr4IAAAAVFBMVEUAAACHjojlOy5NWlrKzcYRKjGFjIbp293YycuLa3pYY2LSqql4f3pCUFTgSjNodYRmcXUsPD/NTTbjRS+2jomhgnzNc223cGvZS0HaSD0XLjbaSjElhIr+AAAAAXRSTlMAQObYZgAAAHlJREFUCNdNyosOwyAIhWHAQS1Vt7a77/3fcxxdmv0xwmckutAR1nkm4ggbyEcg/wWmlGLDAA3oL50xi6fk5ffZ3E2E3QfZDCcCN2YtbEWZt+Drc6u6rlqv7Uk0LdKqqr5rk2UCRXOk0vmQKGfc94nOJyQjouF9H/wCc9gECEYfONoAAAAASUVORK5CYII=)](https://scala-steward.org)
1515
[![Mergify Status](https://img.shields.io/endpoint.svg?url=https://api.mergify.com/v1/badges/playframework/play-mailer&style=flat)](https://mergify.com)
@@ -21,8 +21,8 @@ Play Mailer is a powerful Scala Mailing library. It provides a simple configurab
2121
To get started you add `play-mailer` and `play-mailer-guice` as a dependency in SBT:
2222

2323
```scala
24-
libraryDependencies += "com.typesafe.play" %% "play-mailer" % -version-
25-
libraryDependencies += "com.typesafe.play" %% "play-mailer-guice" % -version-
24+
libraryDependencies += "org.playframework" %% "play-mailer" % -version-
25+
libraryDependencies += "org.playframework" %% "play-mailer-guice" % -version-
2626
```
2727

2828
## Versioning
@@ -110,7 +110,7 @@ class MailerService @Inject() (mailerClient: MailerClient) {
110110
111111
#### Compile Time Injection
112112

113-
If you use Compile time Injection you can remove `libraryDependencies += "com.typesafe.play" %% "play-mailer-guice" % -version-` from your `build.sbt`.
113+
If you use Compile time Injection you can remove `libraryDependencies += "org.playframework" %% "play-mailer-guice" % -version-` from your `build.sbt`.
114114

115115
Create the MailerService without the `@Inject` annotation:
116116

build.sbt

+8-8
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ lazy val `play-mailer` = (project in file("play-mailer"))
4444
"com.typesafe" % "config" % "1.4.3",
4545
"org.slf4j" % "slf4j-api" % "2.0.9",
4646
"org.apache.commons" % "commons-email" % "1.5",
47-
"com.typesafe.play" %% "play" % Dependencies.PlayVersion % Test,
48-
"com.typesafe.play" %% "play-specs2" % Dependencies.PlayVersion % Test
47+
"org.playframework" %% "play" % Dependencies.PlayVersion % Test,
48+
"org.playframework" %% "play-specs2" % Dependencies.PlayVersion % Test
4949
),
50-
mimaPreviousArtifacts := Set("com.typesafe.play" %% "play-mailer" % previousStableVersion.value
51-
.getOrElse(throw new Error("Unable to determine previous version"))),
50+
mimaPreviousArtifacts := Set.empty //Set("org.playframework" %% "play-mailer" % previousStableVersion.value
51+
//.getOrElse(throw new Error("Unable to determine previous version"))),
5252
)
5353

5454
lazy val `play-mailer-guice` = (project in file("play-mailer-guice"))
@@ -58,11 +58,11 @@ lazy val `play-mailer-guice` = (project in file("play-mailer-guice"))
5858
.settings(
5959
libraryDependencies ++= Seq(
6060
"com.google.inject" % "guice" % "6.0.0",
61-
"com.typesafe.play" %% "play" % Dependencies.PlayVersion % Test,
62-
"com.typesafe.play" %% "play-specs2" % Dependencies.PlayVersion % Test
61+
"org.playframework" %% "play" % Dependencies.PlayVersion % Test,
62+
"org.playframework" %% "play-specs2" % Dependencies.PlayVersion % Test
6363
),
64-
mimaPreviousArtifacts := Set("com.typesafe.play" %% "play-mailer-guice" % previousStableVersion.value
65-
.getOrElse(throw new Error("Unable to determine previous version")))
64+
mimaPreviousArtifacts := Set.empty // Set("org.playframework" %% "play-mailer-guice" % previousStableVersion.value
65+
//.getOrElse(throw new Error("Unable to determine previous version")))
6666
,
6767
)
6868

project/Common.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ object Common extends AutoPlugin {
1111

1212
override def globalSettings =
1313
Seq(
14-
organization := "com.typesafe.play",
14+
organization := "org.playframework",
1515
organizationName := "The Play Framework Project",
1616
organizationHomepage := Some(url("https://playframework.com/")),
1717
homepage := Some(url(s"https://github.com/playframework/${repoName}")),

project/Dependencies.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ object Dependencies {
66
val Scala3 = "3.3.1"
77
val ScalaVersions = Seq(Scala213, Scala3)
88

9-
val PlayVersion = sys.props.getOrElse("play.version", sys.env.getOrElse("PLAY_VERSION", "2.9.0-RC3"))
9+
val PlayVersion = sys.props.getOrElse("play.version", sys.env.getOrElse("PLAY_VERSION", "3.0.0"))
1010
}

samples/compile-timeDI/build.sbt

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ scalaVersion := "2.13.12"
1212
crossScalaVersions := Seq("2.13.12", "3.3.1")
1313

1414
libraryDependencies ++= Seq(
15-
"com.typesafe.play" %% "play-mailer" % version.value,
16-
"org.scalatestplus.play" %% "scalatestplus-play" % "6.0.0-RC2" % Test
15+
"org.playframework" %% "play-mailer" % version.value,
16+
"org.scalatestplus.play" %% "scalatestplus-play" % "7.0.0" % Test
1717
)
1818

1919
lazy val root = (project in file(".")).enablePlugins(PlayScala)
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % sys.env.getOrElse("PLAY_VERSION", "2.9.0-RC3"))
1+
addSbtPlugin("org.playframework" % "sbt-plugin" % sys.env.getOrElse("PLAY_VERSION", "3.0.0"))
22
addSbtPlugin("com.github.sbt" % "sbt-dynver" % "5.0.1")

samples/runtimeDI/build.sbt

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ scalaVersion := "2.13.12"
1212
crossScalaVersions := Seq("2.13.12", "3.3.1")
1313

1414
libraryDependencies ++= Seq(
15-
"com.typesafe.play" %% "play-mailer-guice" % version.value,
16-
"org.scalatestplus.play" %% "scalatestplus-play" % "6.0.0-RC2" % Test
15+
"org.playframework" %% "play-mailer-guice" % version.value,
16+
"org.scalatestplus.play" %% "scalatestplus-play" % "7.0.0" % Test
1717
)
1818

1919
lazy val root = (project in file(".")).enablePlugins(PlayJava)

samples/runtimeDI/project/plugins.sbt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % sys.env.getOrElse("PLAY_VERSION", "2.9.0-RC3"))
1+
addSbtPlugin("org.playframework" % "sbt-plugin" % sys.env.getOrElse("PLAY_VERSION", "3.0.0"))
22
addSbtPlugin("com.github.sbt" % "sbt-dynver" % "5.0.1")

0 commit comments

Comments
 (0)