Skip to content

Commit a58273c

Browse files
committed
Fix PSH version in scripts/akka-to-pekko
1 parent e985c2b commit a58273c

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

.github/workflows/standard-workflow.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ jobs:
143143
- uses: coursier/cache-action@v6
144144
- uses: coursier/setup-action@v1
145145

146+
- run: git fetch --tags
146147
- name: Publish Maven artifacts
147148
run: sbt ci-release
148149
env:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
*.log
33

44
.bsp/
5+
.DS_Store/
56
.idea/
67
.sbt/
78
null/

circe-akka-serializer/src/main/scala/org/virtuslab/ash/circe/AkkaCodecs.scala

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package org.virtuslab.ash.circe
22

3-
import akka.actor
3+
import akka.actor.{ActorSystem => ClassicActorSystem}
44
import akka.actor.typed.ActorRef
55
import akka.actor.typed.ActorRefResolver
66
import akka.actor.typed.ActorSystem
@@ -16,23 +16,23 @@ import io.circe.Encoder
1616
* Default codecs for serializing some of Akka types
1717
*/
1818
trait AkkaCodecs {
19-
private def serializationSystem: actor.ActorSystem = Serialization.getCurrentTransportInformation().system
19+
private def serializationSystem: ClassicActorSystem = Serialization.getCurrentTransportInformation().system
2020

21-
implicit def actorRefCodec[T](implicit system: actor.ActorSystem = serializationSystem): Codec[ActorRef[T]] = {
21+
implicit def actorRefCodec[T](implicit system: ClassicActorSystem = serializationSystem): Codec[ActorRef[T]] = {
2222
val resolver = ActorRefResolver(ActorSystem.wrap(system))
2323
Codec.from(
2424
Decoder.decodeString.map(resolver.resolveActorRef),
2525
Encoder.encodeString.contramap(resolver.toSerializationFormat))
2626
}
2727

28-
implicit def sinkRefCodec[T](implicit system: actor.ActorSystem = serializationSystem): Codec[SinkRef[T]] = {
28+
implicit def sinkRefCodec[T](implicit system: ClassicActorSystem = serializationSystem): Codec[SinkRef[T]] = {
2929
val resolver = StreamRefResolver(ActorSystem.wrap(system))
3030
Codec.from(
3131
Decoder.decodeString.map(resolver.resolveSinkRef),
3232
Encoder.encodeString.contramap(resolver.toSerializationFormat(_: SinkRef[T])))
3333
}
3434

35-
implicit def sourceRefCodec[T](implicit system: actor.ActorSystem = serializationSystem): Codec[SourceRef[T]] = {
35+
implicit def sourceRefCodec[T](implicit system: ClassicActorSystem = serializationSystem): Codec[SourceRef[T]] = {
3636
val resolver = StreamRefResolver(ActorSystem.wrap(system))
3737
Codec.from(
3838
Decoder.decodeString.map(resolver.resolveSourceRef),

scripts/akka-to-pekko.sed

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/<START-AKKA>/, /<END-AKKA>/ d
2+
s/import akka/import org.apache.pekko/
23

34
# All cases where "akka" isn't simply replaced with "pekko"
45
s/"akka\./"org.apache.pekko./
@@ -11,7 +12,6 @@ s/doc\.akka\.io/pekko.apache.org/g
1112
# TODO (#325): use a more proper link once this tutorial is published
1213
s!https://developer\.lightbend\.com/docs/akka-platform-guide/microservices-tutorial/index\.html!https://github.com/apache/incubator-pekko-platform-guide/blob/main/docs-source/docs/modules/microservices-tutorial/pages/index.adoc!
1314
s!https://github\.com/akka/akka-samples/tree/2\.6/akka-sample-cluster-scala!https://github.com/apache/incubator-pekko-samples/tree/forked-from-akka/akka-sample-cluster-scala!
14-
s/import akka/import org.apache.pekko/
1515

1616
s/akka/pekko/g
1717
s/Akka/Pekko/g
@@ -21,7 +21,7 @@ s/\<ASH\>/ASH/g
2121
s/("ch\.megard" %% "pekko-http-cors") % ".*"/\1 % "0.0.0-SNAPSHOT"/
2222
s/("org\.apache\.pekko" %% "pekko-grpc-runtime") % ".*"/\1 % "1.0.0-RC2-2-56662643-SNAPSHOT"/
2323
s/("org\.apache\.pekko" % "sbt-pekko-grpc") % ".*"/\1 % "0.0.0-94-0bfb43a6-SNAPSHOT"/
24-
s/("org\.virtuslab\.ash" % "sbt-akka-serialization-helper") % ".*"/\1 % "0.1.0"/
24+
s/("org\.virtuslab\.psh" % "sbt-pekko-serialization-helper") % ".*"/\1 % "0.7.2.1"/
2525
s/(val pekkoHttp2SupportVersion) = .*/\1 = "0.0.0+4272-045c925b-SNAPSHOT"/
2626
s/(val pekkoHttpVersion) = .*/\1 = "1.0.0"/
2727
s/(val pekkoManagementVersion) = .*/\1 = "1.0.0"/

0 commit comments

Comments
 (0)