From f5e8787a9cd49a88981bb60f66065e1b5335fa58 Mon Sep 17 00:00:00 2001 From: regadas Date: Fri, 15 Mar 2024 22:47:03 +0000 Subject: [PATCH] Use tlCommandAlias for command aliases `tlReplaceCommandAlias` is deprecated. Use `tlCommandAlias` instead. --- build.sbt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/build.sbt b/build.sbt index aa409c66..3bdf210c 100644 --- a/build.sbt +++ b/build.sbt @@ -5,10 +5,11 @@ val scala212 = "2.12.19" val scala213 = "2.13.12" val scala3 = "3.3.1" -addCommandAlias("fmt", "; scalafmtAll; scalafmtSbt") -addCommandAlias("fmtCheck", "; scalafmtCheckAll; scalafmtSbtCheck") - -tlReplaceCommandAlias("prePR", "; githubWorkflowGenerate ; +fmt; bench/compile; +test") +GlobalScope / tlCommandAliases ++= Map( + "fmt" -> List("scalafmtAll", "scalafmtSbt"), + "fmtCheck" -> List("scalafmtCheckAll", "scalafmtSbtCheck"), + "prePR" -> List("githubWorkflowGenerate", "+fmt", "bench/compile", "+test") +) ThisBuild / tlBaseVersion := "1.0" // continue enforcing bincompat with 0.3.x series