name := "pureconfig-cron4s"

crossScalaVersions ~= { _.filterNot(_.startsWith("2.13")) }

libraryDependencies ++= Seq(
  "com.github.alonsodomin.cron4s" %% "cron4s-core" % "0.5.0")

developers := List(
  Developer("bardurdam", "Bárður Viberg Dam", "bardurdam@gmail.com", url("https://github.com/bardurdam")))

osgiSettings

OsgiKeys.exportPackage := Seq("pureconfig.module.cron4s.*")
OsgiKeys.privatePackage := Seq()
OsgiKeys.importPackage := Seq(s"""scala.*;version="[${scalaBinaryVersion.value}.0,${scalaBinaryVersion.value}.50)"""", "*")

name := "pureconfig-cron4s"

libraryDependencies += {
  val cron4sVersion = CrossVersion.partialVersion(scalaVersion.value) match {
    case Some((2, n)) if n < 12 => "0.5.0"
    case _                      => "0.6.0-M2"
  }
  
  "com.github.alonsodomin.cron4s" %% "cron4s-core" % cron4sVersion
}

developers := List(
  Developer("bardurdam", "Bárður Viberg Dam", "bardurdam@gmail.com", url("https://github.com/bardurdam")))

osgiSettings

OsgiKeys.exportPackage := Seq("pureconfig.module.cron4s.*")
OsgiKeys.privatePackage := Seq()
OsgiKeys.importPackage := Seq(s"""scala.*;version="[${scalaBinaryVersion.value}.0,${scalaBinaryVersion.value}.50)"""", "*")

Support for Scala 2.13 in cron4s
Support for Scala 2.13 in cron4s

`cron4s` supports Scala 2.13 in the 0.6 version series, but at the same time drops support for Scala 2.11. This change makes this module available for all the cross Scala versions at the cost of choosing a different version of the dependency.

Other option would be dropping 2.11 support in this module.

ps: `cron4s` 0.6 will be source compatible with 0.5.