Skip to content

Commit

Permalink
Remove publishLegacy
Browse files Browse the repository at this point in the history
  • Loading branch information
blast-hardcheese committed Dec 14, 2023
1 parent 21bb434 commit e2d3034
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,3 @@ lazy val root = (project in file("."))

lazy val core = (project in file("modules/core"))
.settings(commonSettings)

addCommandAlias("publishLegacy", "set ThisBuild / organization := \"com.twilio\"; set publishTo := sonatypePublishToBundle.value; publishSigned")
4 changes: 0 additions & 4 deletions modules/core/src/main/scala/AbstractCodegenPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,6 @@ trait AbstractGuardrailPlugin { 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 e2d3034

Please sign in to comment.