Skip to content

Commit

Permalink
use Scala 2.13 as default (to avoid problems with scalafix from scala3)
Browse files Browse the repository at this point in the history
  • Loading branch information
Karry committed May 28, 2024
1 parent 4294b40 commit f28fade
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion project/BuildSettings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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", "[email protected]", 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(
Expand Down
4 changes: 2 additions & 2 deletions site/docs/subprojects/pureconfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
```
Expand Down

0 comments on commit f28fade

Please sign in to comment.