diff --git a/.github/workflows/native-image-tests.yml b/.github/workflows/native-image-tests.yml index 3cc387d0f..87cd2118f 100644 --- a/.github/workflows/native-image-tests.yml +++ b/.github/workflows/native-image-tests.yml @@ -39,6 +39,17 @@ jobs: with: jvm: graalvm-community:21.0.2 + - name: Gather version + # some cleanup of the sbt output to get the version sbt will use when publishing below + run: |- + sbt --no-colors "print akka-projection-core/version" | tail -n 1 | tr -d '\n' > ~/.version + echo [$(cat ~/.version)] + # useful for debugging: hexdump -c ~/.version + + - name: Publish artifacts locally + run: |- + sbt "set ThisBuild/Compile/packageDoc/publishArtifact := false; +publishLocal; publishM2" -Dakka.no.discipline=true + - name: "Build and test Scala Native Image" run: | cd samples/grpc/local-drone-control-scala diff --git a/akka-projection-grpc/src/main/resources/META-INF/native-image/com.lightbend.akka/akka-projection-grpc/reflect-config.json b/akka-projection-grpc/src/main/resources/META-INF/native-image/com.lightbend.akka/akka-projection-grpc/reflect-config.json index 0ed3acfd1..4867da5a0 100644 --- a/akka-projection-grpc/src/main/resources/META-INF/native-image/com.lightbend.akka/akka-projection-grpc/reflect-config.json +++ b/akka-projection-grpc/src/main/resources/META-INF/native-image/com.lightbend.akka/akka-projection-grpc/reflect-config.json @@ -54,5 +54,11 @@ "typeReachable": "akka.cluster.ddata.typed.scaladsl.DistributedData" }, "name": "akka.cluster.ddata.typed.scaladsl.DistributedData" + }, + { + "condition": { + "typeReachable": "akka.projection.grpc.internal.ConsumerFilterRegistry" + }, + "name": "akka.projection.grpc.internal.ConsumerFilterRegistry$PubSubAck" } ] \ No newline at end of file