Skip to content

Commit

Permalink
Default to scala3Renderer if scalaVersion is 3
Browse files Browse the repository at this point in the history
  • Loading branch information
rreckel committed Aug 4, 2023
1 parent b48c312 commit abf290c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/sbtbuildinfo/BuildInfoPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,6 @@ object BuildInfoPlugin extends AutoPlugin {
buildInfoKeys := Seq(name, version, scalaVersion, sbtVersion),
buildInfoBuildNumber := buildNumberTask(baseDirectory.value, 1),
buildInfoOptions := Seq(),
buildInfoRenderFactory := ScalaCaseObjectRenderer.apply
buildInfoRenderFactory := (if(scalaVersion.value.startsWith("3")) Scala3CaseObjectRenderer.apply else ScalaCaseObjectRenderer.apply)
)
}

0 comments on commit abf290c

Please sign in to comment.