-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update build #107
update build #107
Conversation
pjfanning
commented
Feb 12, 2024
- scala 2.13.12
- don't hardcode full scala versions in CI yml (easier maintenance)
- use more sbt-pekko-build style dependency management
@@ -198,7 +198,7 @@ private[projection] class SlickProjectionImpl[Offset, Envelope, P <: JdbcProfile | |||
databaseConfig.db.run(offsetStore.saveOffset(projectionId, offset)).map(_ => Done) | |||
|
|||
private[projection] def newRunningInstance(): RunningProjection = | |||
new SlickRunningProjection(RunningProjection.withBackoff(() => mappedSource(), settings), this) | |||
new SlickRunningProjection(RunningProjection.withBackoff(() => this.mappedSource(), settings), this) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whats reason behind this change, some deprecation warning?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
build issue after updating to scala 2.13.12
[error] /home/runner/work/incubator-pekko-projection/incubator-pekko-projection/slick/src/main/scala/org/apache/pekko/projection/slick/internal/SlickProjectionImpl.scala:201:70: reference to mappedSource is ambiguous;
[error] it is both defined in the enclosing class SlickProjectionImpl and inherited in the enclosing class SlickInternalProjectionState as method mappedSource (defined in class InternalProjectionState)
[error] In Scala 2, symbols inherited from a superclass shadow symbols defined in an outer scope.
[error] Such references are ambiguous in Scala 3. To continue using the inherited symbol, write `this.mappedSource`.
[error] Or use `-Wconf:msg=legacy-binding:s` to silence this warning. [quickfixable]
[error] new SlickRunningProjection(RunningProjection.withBackoff(() => mappedSource(), settings), this)
[error] ^
[error] one error found
[error] (slick / Compile / compileIncremental) Compilation failed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
case Some(_) => Seq(Resolver.ApacheMavenSnapshotsRepo) | ||
case None => Seq.empty | ||
}) | ||
resolvers += Resolver.ApacheMavenSnapshotsRepo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe also update(/remove?) the comment above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've changed this with 59f2d1c
@@ -15,6 +15,8 @@ sourceDistName := "apache-pekko-projection" | |||
sourceDistIncubating := true | |||
|
|||
ThisBuild / pekkoInlineEnabled := false | |||
// we want to be able to test with snapshot versions of Pekko dependencies | |||
ThisBuild / resolvers += Resolver.ApacheMavenSnapshotsRepo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it was nice that this used to be conditional, but not a big issue to have it here I suppose