Skip to content

Commit

Permalink
fix: restore warning log
Browse files Browse the repository at this point in the history
  • Loading branch information
regiskuckaertz committed Jun 11, 2023
1 parent 5324b35 commit 1f243e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/core/src/main/scala/AbstractCodegenPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,10 @@ trait AbstractGuardrailPlugin extends GuardrailRunner { self: AutoPlugin =>
}

private def cachedGuardrailTask(projectName: String, scope: String, scalaBinaryVersion: String)(kind: String, streams: _root_.sbt.Keys.TaskStreams)(tasks: List[(String, Args)], sources: Seq[java.io.File]) = {
if (BuildInfo.organization == "com.twilio" && tasks.nonEmpty) {
streams.log.warn(s"""${projectName} / ${scope}: sbt-guardrail has changed organizations! Please change "com.twilio" to "dev.guardrail" to continue receiving updates""")
}

val inputFiles = tasks.flatMap(_._2.specPath).map(file(_)).toSet
val cacheDir = streams.cacheDirectory / "guardrail" / scalaBinaryVersion / kind

Expand Down

0 comments on commit 1f243e6

Please sign in to comment.