Skip to content

Commit

Permalink
Merge pull request #92 from Dwolla/publish-modified-generated-code
Browse files Browse the repository at this point in the history
tweak tlCommandAliases to avoid smithy4s regenerating code when switching between Scala versions
  • Loading branch information
bpholt authored Sep 26, 2024
2 parents 3dc4677 + 342edc2 commit 515baab
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,19 @@ ThisBuild / mergifyStewardConfig ~= { _.map {
_.withAuthor("dwolla-oss-scala-steward[bot]")
.withMergeMinors(true)
}}
Global / tlCommandAliases := {
def forEachScalaVersion(l: String *): Seq[String] =
githubWorkflowScalaVersions.value.flatMap { v =>
s"++ $v" :: l.toList
}

val base = List("reload", "project /")

Map(
"tlRelease" -> (base ++ forEachScalaVersion("mimaReportBinaryIssues", "publish") ++ List("tlSonatypeBundleReleaseIfRelevant")),
"tlReleaseLocal" -> (base ++ forEachScalaVersion("compile", "publishLocal"))
)
}

lazy val `smithy4s-preprocessors` = project
.in(file("smithy4s-preprocessors"))
Expand Down

0 comments on commit 515baab

Please sign in to comment.