-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply minor patches to ease onboarding to Pekko
- Loading branch information
1 parent
14ac09d
commit aa8ee07
Showing
26 changed files
with
99 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,10 @@ name: Standard Workflow | |
|
||
on: workflow_call | ||
|
||
concurrency: | ||
group: ${{ github.head_ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
code-style-check: | ||
runs-on: ubuntu-latest | ||
|
@@ -15,9 +19,6 @@ jobs: | |
with: | ||
java-version: [email protected] | ||
|
||
- name: Resolve dependencies | ||
run: sbt update | ||
|
||
- name: Run code checks | ||
run: | | ||
PATH=$PATH:./scripts | ||
|
@@ -57,9 +58,6 @@ jobs: | |
with: | ||
java-version: [email protected] | ||
|
||
- name: Resolve dependencies | ||
run: sbt update | ||
|
||
- name: Compile | ||
run: sbt compile Test/compile | ||
|
||
|
@@ -84,9 +82,6 @@ jobs: | |
with: | ||
java-version: [email protected] | ||
|
||
- name: Resolve dependencies | ||
run: sbt update | ||
|
||
- name: Compile | ||
run: sbt compile Test/compile | ||
|
||
|
@@ -110,9 +105,6 @@ jobs: | |
with: | ||
java-version: [email protected] | ||
|
||
- name: Resolve dependencies | ||
run: sbt update | ||
|
||
- name: Compile | ||
run: sbt compile Test/compile | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
s/"akka\./"org.apache.pekko./ | ||
s/com\.lightbend\.akka(\.\w+)?/org.apache.pekko/ | ||
s/com\.typesafe\.akka/org.apache.pekko/g | ||
s/import akka/import org.apache.pekko/ | ||
s/akka/pekko/g | ||
s/Akka/Pekko/g | ||
|
||
s/"ch.megard" %% "pekko-http-cors" % ".*"/"ch.megard" %% "pekko-http-cors" % "0.0.0-SNAPSHOT"/ | ||
s/"org.apache.pekko" %% "pekko-grpc-runtime" % ".*"/"org.apache.pekko" %% "pekko-grpc-runtime" % "1.0.0-RC2-2-56662643-SNAPSHOT"/ | ||
s/"org.apache.pekko" % "sbt-pekko-grpc" % ".*"/"org.apache.pekko" % "sbt-pekko-grpc" % "0.0.0-94-0bfb43a6-SNAPSHOT"/ | ||
s/val pekkoHttp2SupportVersion = .*/val pekkoHttp2SupportVersion = "0.0.0+4272-045c925b-SNAPSHOT"/ | ||
s/val pekkoHttpVersion = .*/val pekkoHttpVersion = "1.0.0"/ | ||
s/val pekkoManagementVersion = .*/val pekkoManagementVersion = "1.0.0"/ | ||
s/val pekkoPersistenceJdbcVersion = .*/val pekkoPersistenceJdbcVersion = "0.0.0+998-6a9e5841-SNAPSHOT"/ | ||
s/val pekkoProjectionVersion = .*/val pekkoProjectionVersion = "0.0.0+68-6f80a745-SNAPSHOT"/ | ||
s/val pekkoVersion = .*/val pekkoVersion = "1.0.1"/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e -o pipefail -u | ||
|
||
git ls-files | grep -Ev 'akka-to-pekko|scalafmt\.conf|scala-steward\.conf' | xargs sed -E -f akka-to-pekko.sed -i | ||
|
||
echo 'libraryDependencySchemes += "org.apache.pekko" %% "pekko-http-core" % "always"' >> examples/akka-persistence-app/build.sbt | ||
|
||
git ls-files | grep -v 'akka-to-pekko' | rename -e 's/akka/pekko/' -e 's/Akka/Pekko/' --make-dirs --stdin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,7 @@ ThisBuild / licenses := List( | |
"MIT License" -> url("https://github.com/VirtusLab/akka-serialization-helper/blob/main/LICENSE")) | ||
ThisBuild / developers := List( | ||
Developer("MarconZet", "Marcin Złakowski", "[email protected]", url("https://github.com/MarconZet")), | ||
Developer("HubertBalcerzak", "Hubert Balcerzak", "hubertbalc@gmail.com", url("https://github.com/HubertBalcerzak")), | ||
Developer("LukaszKontowski", "Łukasz Kontowski", "lkontowski@virtuslab.com", url("https://github.com/LukaszKontowski")), | ||
Developer("PawelLipski", "Paweł Lipski", "[email protected]", url("https://github.com/PawelLipski"))) | ||
|
||
sonatypeProfileName := "org.virtuslab" | ||
|
@@ -45,7 +45,8 @@ Global / onChangedBuildSource := ReloadOnSourceChanges | |
|
||
ThisBuild / semanticdbEnabled := true | ||
ThisBuild / semanticdbVersion := "4.7.8" | ||
ThisBuild / scalafixDependencies += "com.github.liancheng" %% "organize-imports" % "0.6.0" | ||
|
||
ThisBuild / resolvers += Resolver.ApacheMavenSnapshotsRepo | ||
|
||
lazy val commonSettings = Seq( | ||
sonatypeProfileName := "org.virtuslab", | ||
|
@@ -148,6 +149,7 @@ lazy val serializabilityCheckerCompilerPlugin = (projectMatrix in file("serializ | |
.settings(name := "serializability-checker-compiler-plugin") | ||
.settings(commonSettings) | ||
.settings(crossScalaVersions := testAgainstScalaVersions) | ||
.settings(resolvers ++= Resolver.sonatypeOssRepos("snapshots")) | ||
.settings( | ||
libraryDependencies ++= { | ||
CrossVersion | ||
|
@@ -165,7 +167,7 @@ lazy val serializabilityCheckerCompilerPlugin = (projectMatrix in file("serializ | |
akkaProjections % Test, | ||
betterFiles % Test, | ||
akkaGrpc % Test, | ||
akkaGrpcWebSupport % Test)) | ||
akkaHttpCors % Test)) | ||
.dependsOn(annotation) | ||
.jvmPlatform(scalaVersions = targetScalaVersions) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e -o pipefail -u | ||
|
||
sbt publishLocal | ||
|
||
version=$(ls -1t ~/.ivy2/local/org.virtuslab.ash/sbt-pekko-serialization-helper/scala_2.12/sbt_1.0/ | head -1) | ||
#sbt -Dsbt.supershell=false -error "print sbtPekkoSerializationHelper/version" | ||
|
||
find . -type f | grep '\.sbt$' | xargs sed -E 's/("sbt-pekko-serialization-helper") % ".*"/\1 % "'"$version"'"/' -i |