I’ve been attempting to upgrade from Slick v3.4.0 to v3.5.0.
The Incompatibilty Report from the upgrade notes for Slick here: Incompatible changes · Slick It states that:
… different result type in current version, where it is slick.jdbc.JdbcBackend#JdbcDatabaseDef rather than slick.jdbc.JdbcBackend#DatabaseDef …
When trying to compile the code after the upgrade getting the following error:
Symbol 'type slick.jdbc.JdbcBackend.DatabaseDef' is missing from the classpath.
This symbol is required by 'value akka.stream.alpakka.slick.javadsl.SlickSession.db'
Looking at the SlickSesesion
class (akka-stream-alpakka-slick_2.13-7.0.2.jar!/akka/stream/alpakka/slick/javadsl/SlickSession.class), it appears to continue to reference the slick.jdbc.JdbcBackend#DatabaseDef
:
package akka.stream.alpakka.slick.javadsl
sealed abstract class SlickSession {
val db: _root_.slick.jdbc.JdbcBackend#DatabaseDef
val profile: _root_.slick.jdbc.JdbcProfile
def close(): _root_.scala.Unit = ???
}
I believe the issue is that the SlickSession
class has not been re-generated since Alpakka was upgraded to Slick v3.5.0. I tried re-generating the SlickSession
class locally with the v3.5.0 Slick and the SlickSession class referenced JdbcBackend#JdbcDatabaseDef
.
Am I correct? If so when will a new release of Alpakka be released with the new generated version of the SlickSession
class included, referencing the correct Slick v3.5.0 classes?