Skip to content
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

Merged
merged 4 commits into from
Feb 12, 2024
Merged

update build #107

merged 4 commits into from
Feb 12, 2024

Conversation

pjfanning
Copy link
Contributor

  • 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)
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor

@mdedetrich mdedetrich left a 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
Copy link
Member

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

Copy link
Contributor Author

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
Copy link
Member

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

@raboof raboof merged commit 04be28f into apache:main Feb 12, 2024
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants