Skip to content

Commit

Permalink
Add calibanVersion setting (ghostdogpr#1165)
Browse files Browse the repository at this point in the history
  • Loading branch information
kubukoz authored and Fluxx committed Jan 27, 2022
1 parent 1b6df99 commit c1a073f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions codegen-sbt/src/main/scala/caliban/codegen/CalibanKeys.scala
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ trait CalibanKeys {

@deprecated("CodegenPlugin has been renamed to CalibanPlugin", "1.1.0")
val CodegenPlugin: CalibanPlugin.type = CalibanPlugin

val calibanVersion = settingKey[String]("Version of the Caliban sbt plugin")
}

object CalibanKeys extends CalibanKeys
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ object CalibanPlugin extends AutoPlugin {

lazy val baseSettings = Seq(
caliban := (caliban / calibanGenerator).value,
calibanVersion := BuildInfo.version,
(caliban / sourceManaged) := {
sourceManaged.value / "caliban-codegen-sbt"
},
Expand Down

0 comments on commit c1a073f

Please sign in to comment.