def check()

in core/src/main/scala/org/apache/pekko/persistence/jdbc/util/PluginVersionChecker.scala [21:30]


  def check(): Unit =
    try {
      Class.forName("org.apache.pekko.persistence.jdbc.util.DefaultSlickDatabaseProvider")
      throw new RuntimeException(
        "Old version of Apache Pekko Persistence JDBC found on the classpath. Remove `com.github.dnvriend:pekko-persistence-jdbc` from the classpath..")
    } catch {
      case _: ClassNotFoundException =>
      // All good! That's intentional.
      // It's good if we don't have pekko.persistence.jdbc.util.DefaultSlickDatabaseProvider around
    }