ptrdom opened a new pull request, #524: URL: https://github.com/apache/pekko-persistence-r2dbc/pull/524
### Motivation The nightly `scala3Next` build fails because `H2Utils` uses `with` as a type operator, which Scala 3.10 rejects: ``` [E003] Syntax Error: core/src/main/scala/org/apache/pekko/persistence/r2dbc/internal/h2/H2Utils.scala:49:52 with as a type operator has been deprecated; use & instead ``` The H2 support (#517) and the Scala 3 Next build (#523) were merged around the same time, so the compound type added by H2 was not moved to the per-version `SettingsTypes` aliases. ### Modification Rename `SettingsTypes.MySQLRequiredSettings` to `AppTimestampSettings` and use it from both `MySQLJournalDao` and `H2Utils`. ### Result `core` compiles on Scala 3 Next again. The alias is internal and erases to the same signature, so binary compatibility is unaffected. ### Tests - `sbt "++3.10.0 core/Test/compile"` - passed - `sbt "++2.13 core/Test/compile"` - passed - `sbt scalafmtCheckAll` - passed ### References None - nightly `scala3Next` failure after #517 and #523 (https://github.com/apache/pekko-persistence-r2dbc/actions/runs/40258619330) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
