diff --git a/project/BuildSettings.scala b/project/BuildSettings.scala index 53cec504..945ca25a 100644 --- a/project/BuildSettings.scala +++ b/project/BuildSettings.scala @@ -31,7 +31,7 @@ object BuildSettings { description := "Functional programming toolkit for building server applications in Scala.", licenses := Seq("MIT" -> url("https://raw.githubusercontent.com/avast/scala-server-toolkit/master/LICENSE")), developers := List(Developer("jakubjanecek", "Jakub Janecek", "janecek@avast.com", url("https://www.avast.com"))), - scalaVersion := scala3, + scalaVersion := scala213, crossScalaVersions := List(scala213, scala212, scala3), fork := true, libraryDependencies ++= (if (!isScala3(scalaVersion.value)) List(compilerPlugin(Dependencies.kindProjector)) else List.empty) ++ List( diff --git a/site/docs/subprojects/pureconfig.md b/site/docs/subprojects/pureconfig.md index b83de2f0..6de1d91b 100644 --- a/site/docs/subprojects/pureconfig.md +++ b/site/docs/subprojects/pureconfig.md @@ -56,11 +56,11 @@ import com.avast.sst.pureconfig.PureConfigModule import pureconfig.ConfigReader import zio.interop.catz.* import zio.Task -import pureconfig.generic.derivation.default.* +import pureconfig.generic.semiauto._ final case class ServerConfiguration(listenAddress: String, listenPort: Int) -implicit val serverConfigurationReader: ConfigReader[ServerConfiguration] = ConfigReader.derived +implicit val serverConfigurationReader: ConfigReader[ServerConfiguration] = deriveReader[ServerConfiguration] val maybeConfiguration = PureConfigModule.make[Task, ServerConfiguration] ```