Skip to content

Commit

Permalink
pekko http 1.0.0 (#121)
Browse files Browse the repository at this point in the history
* pekko http 1.0.0

* remove snapshot repositories in poms
  • Loading branch information
pjfanning authored Aug 2, 2023
1 parent cc19087 commit b68b395
Show file tree
Hide file tree
Showing 23 changed files with 9 additions and 90 deletions.
4 changes: 0 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ lazy val mkBatAssemblyTask = taskKey[File]("Create a Windows bat assembly")
// gradle plugin compatibility (avoid `+` in snapshot versions)
(ThisBuild / dynverSeparator) := "-"

// TODO remove these resolvers when we start using released Pekko jars
ThisBuild / resolvers += Resolver.ApacheMavenSnapshotsRepo
ThisBuild / updateOptions := updateOptions.value.withLatestSnapshots(false)

val pekkoGrpcCodegenId = s"$pekkoPrefix-codegen"
lazy val codegen = Project(id = "codegen", base = file("codegen"))
.enablePlugins(SbtTwirl, BuildInfoPlugin)
Expand Down
4 changes: 2 additions & 2 deletions plugin-tester-java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ def scalaVersion = org.gradle.util.VersionNumber.parse(scalaFullVersion)
def scalaBinaryVersion = "${scalaVersion.major}.${scalaVersion.minor}"

dependencies {
implementation group: 'org.apache.pekko', name: "pekko-http-cors_${scalaBinaryVersion}", version: '0.0.0+4468-963bd592-SNAPSHOT'
implementation group: 'org.apache.pekko', name: "pekko-http-cors_${scalaBinaryVersion}", version: '1.0.0'
implementation "org.scala-lang:scala-library:${scalaFullVersion}"
testImplementation "org.apache.pekko:pekko-stream-testkit_${scalaBinaryVersion}:1.0.0"
testImplementation "org.apache.pekko:pekko-stream-testkit_${scalaBinaryVersion}:1.0.1"
testImplementation "org.scalatest:scalatest_${scalaBinaryVersion}:3.2.15"
testImplementation "org.scalatestplus:junit-4-13_${scalaBinaryVersion}:3.2.15.0"
}
10 changes: 1 addition & 9 deletions plugin-tester-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,11 @@
<maven.compiler.target>1.8</maven.compiler.target>
<maven-dependency-plugin.version>3.1.2</maven-dependency-plugin.version>
<maven-exec-plugin.version>3.0.0</maven-exec-plugin.version>
<pekko.http.version>0.0.0+4468-963bd592-SNAPSHOT</pekko.http.version>
<pekko.http.version>1.0.0</pekko.http.version>
<grpc.version>1.48.1</grpc.version> <!-- checked synced by VersionSyncCheckPlugin -->
<project.encoding>UTF-8</project.encoding>
</properties>

<repositories>
<repository>
<id>apache-snapshots</id>
<name>Apache Snapshots Repository</name>
<url>https://repository.apache.org/content/repositories/snapshots/</url>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>org.apache.pekko</groupId>
Expand Down
4 changes: 2 additions & 2 deletions plugin-tester-scala/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ def scalaVersion = org.gradle.util.VersionNumber.parse(scalaFullVersion)
def scalaBinaryVersion = "${scalaVersion.major}.${scalaVersion.minor}"

dependencies {
implementation group: 'org.apache.pekko', name: "pekko-http-cors_${scalaBinaryVersion}", version: '0.0.0+4468-963bd592-SNAPSHOT'
implementation group: 'org.apache.pekko', name: "pekko-http-cors_${scalaBinaryVersion}", version: '1.0.0'
implementation "org.scala-lang:scala-library:${scalaFullVersion}"
testImplementation "org.apache.pekko:pekko-stream-testkit_${scalaBinaryVersion}:1.0.0"
testImplementation "org.apache.pekko:pekko-stream-testkit_${scalaBinaryVersion}:1.0.1"
testImplementation "org.scalatest:scalatest_${scalaBinaryVersion}:3.2.15"
testImplementation "org.scalatestplus:junit-4-13_${scalaBinaryVersion}:3.2.15.0"
}
12 changes: 2 additions & 10 deletions plugin-tester-scala/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,12 @@
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<pekko.version>1.0.0</pekko.version>
<pekko.http.version>0.0.0+4468-963bd592-SNAPSHOT</pekko.http.version>
<pekko.version>1.0.1</pekko.version>
<pekko.http.version>1.0.0</pekko.http.version>
<grpc.version>1.48.1</grpc.version> <!-- checked synced by VersionSyncCheckPlugin -->
<project.encoding>UTF-8</project.encoding>
</properties>

<repositories>
<repository>
<id>apache-snapshots</id>
<name>Apache Snapshots Repository</name>
<url>https://repository.apache.org/content/repositories/snapshots/</url>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>org.apache.pekko</groupId>
Expand Down
4 changes: 2 additions & 2 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ object Dependencies {
// We don't force Pekko updates because downstream projects can upgrade
// themselves. For more information see
// https://pekko.apache.org//docs/pekko/current/project/downstream-upgrade-strategy.html
val pekko = "1.0.0"
val pekko = "1.0.1"
val pekkoBinary = "current"
val pekkoHttp = "0.0.0+4468-963bd592-SNAPSHOT"
val pekkoHttp = "1.0.0"
val pekkoHttpBinary = "current"

val grpc = "1.48.1" // checked synced by VersionSyncCheckPlugin
Expand Down
3 changes: 0 additions & 3 deletions sbt-plugin/src/sbt-test/gen-java/01-gen-basic-java/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
// https://github.com/akka/akka-grpc/pull/1279
scalaVersion := "2.12.18"

// TODO remove these resolvers when we start using released Pekko jars
resolvers += Resolver.ApacheMavenSnapshotsRepo

enablePlugins(PekkoGrpcPlugin)

javacOptions += "-Xdoclint:all"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
// https://github.com/akka/akka-grpc/pull/1279
scalaVersion := "2.12.18"

// TODO remove these resolvers when we start using released Pekko jars
resolvers += Resolver.ApacheMavenSnapshotsRepo

enablePlugins(PekkoGrpcPlugin)

pekkoGrpcGeneratedLanguages := Seq(PekkoGrpc.Java)
3 changes: 0 additions & 3 deletions sbt-plugin/src/sbt-test/gen-java/03-no-java-package/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
// https://github.com/akka/akka-grpc/pull/1279
scalaVersion := "2.12.18"

// TODO remove these resolvers when we start using released Pekko jars
resolvers += Resolver.ApacheMavenSnapshotsRepo

enablePlugins(PekkoGrpcPlugin)

pekkoGrpcGeneratedLanguages := Seq(PekkoGrpc.Java)
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
// https://github.com/akka/akka-grpc/pull/1279
scalaVersion := "2.12.18"

// TODO remove these resolvers when we start using released Pekko jars
resolvers += Resolver.ApacheMavenSnapshotsRepo

enablePlugins(PekkoGrpcPlugin)

javacOptions += "-Xdoclint:all"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
// https://github.com/akka/akka-grpc/pull/1279
scalaVersion := "2.12.18"

// TODO remove these resolvers when we start using released Pekko jars
resolvers += Resolver.ApacheMavenSnapshotsRepo

enablePlugins(PekkoGrpcPlugin)

pekkoGrpcGeneratedLanguages := Seq(PekkoGrpc.Java)
3 changes: 0 additions & 3 deletions sbt-plugin/src/sbt-test/gen-scala-server/00-interop/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
// https://github.com/akka/akka-grpc/pull/1279
scalaVersion := "2.12.18"

// TODO remove these resolvers when we start using released Pekko jars
resolvers += Resolver.ApacheMavenSnapshotsRepo

organization := "org.apache.pekko"

val grpcVersion = "1.48.1" // checked synced by VersionSyncCheckPlugin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
// https://github.com/akka/akka-grpc/pull/1279
scalaVersion := "2.12.18"

// TODO remove these resolvers when we start using released Pekko jars
resolvers += Resolver.ApacheMavenSnapshotsRepo
resolvers += "apache-staging".at("https://repository.apache.org/content/groups/staging/")

scalacOptions += "-Xfatal-warnings"

enablePlugins(PekkoGrpcPlugin)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,4 @@
// https://github.com/akka/akka-grpc/pull/1279
scalaVersion := "2.12.18"

// TODO remove these resolvers when we start using released Pekko jars
resolvers += Resolver.ApacheMavenSnapshotsRepo
resolvers += "apache-staging".at("https://repository.apache.org/content/groups/staging/")

enablePlugins(PekkoGrpcPlugin)
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
// https://github.com/akka/akka-grpc/pull/1279
scalaVersion := "2.12.18"

// TODO remove these resolvers when we start using released Pekko jars
resolvers += Resolver.ApacheMavenSnapshotsRepo
resolvers += "apache-staging".at("https://repository.apache.org/content/groups/staging/")

enablePlugins(PekkoGrpcPlugin)

Compile / pekkoGrpcGeneratedSources := Seq(PekkoGrpc.Server)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,4 @@
// https://github.com/akka/akka-grpc/pull/1279
scalaVersion := "2.12.18"

// TODO remove these resolvers when we start using released Pekko jars
resolvers += Resolver.ApacheMavenSnapshotsRepo
resolvers += "apache-staging".at("https://repository.apache.org/content/groups/staging/")

enablePlugins(PekkoGrpcPlugin)
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,4 @@
// https://github.com/akka/akka-grpc/pull/1279
scalaVersion := "2.12.18"

// TODO remove these resolvers when we start using released Pekko jars
resolvers += Resolver.ApacheMavenSnapshotsRepo
resolvers += "apache-staging".at("https://repository.apache.org/content/groups/staging/")

enablePlugins(PekkoGrpcPlugin)
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
// https://github.com/akka/akka-grpc/pull/1279
scalaVersion := "2.12.18"

// TODO remove these resolvers when we start using released Pekko jars
resolvers += Resolver.ApacheMavenSnapshotsRepo
resolvers += "apache-staging".at("https://repository.apache.org/content/groups/staging/")

enablePlugins(ProtocJSPlugin) // enable it first to test possibility of getting overriden

enablePlugins(PekkoGrpcPlugin)
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
// https://github.com/akka/akka-grpc/pull/1279
scalaVersion := "2.12.18"

// TODO remove these resolvers when we start using released Pekko jars
resolvers += Resolver.ApacheMavenSnapshotsRepo
resolvers += "apache-staging".at("https://repository.apache.org/content/groups/staging/")

enablePlugins(PekkoGrpcPlugin)

assembly / assemblyMergeStrategy := {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
// https://github.com/akka/akka-grpc/pull/1279
scalaVersion := "2.12.18"

// TODO remove these resolvers when we start using released Pekko jars
resolvers += Resolver.ApacheMavenSnapshotsRepo
resolvers += "apache-staging".at("https://repository.apache.org/content/groups/staging/")

enablePlugins(PekkoGrpcPlugin)

// Don't enable it flat_package globally, but via a package-level option instead (see package.proto)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
// https://github.com/akka/akka-grpc/pull/1279
scalaVersion := "2.12.18"

// TODO remove these resolvers when we start using released Pekko jars
resolvers += Resolver.ApacheMavenSnapshotsRepo
resolvers += "apache-staging".at("https://repository.apache.org/content/groups/staging/")

//#setup
import scalapb.GeneratorOption._

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,4 @@
// https://github.com/akka/akka-grpc/pull/1279
scalaVersion := "2.12.18"

// TODO remove these resolvers when we start using released Pekko jars
resolvers += Resolver.ApacheMavenSnapshotsRepo
resolvers += "apache-staging".at("https://repository.apache.org/content/groups/staging/")

enablePlugins(PekkoGrpcPlugin)
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
scalaVersion := "3.3.0"

// TODO remove these resolvers when we start using released Pekko jars
resolvers += Resolver.ApacheMavenSnapshotsRepo

scalacOptions += "-Xfatal-warnings"

enablePlugins(PekkoGrpcPlugin)
Expand Down

0 comments on commit b68b395

Please sign in to comment.