From a98a6af54e5dd5ca85611a3889ec06dd12c373e5 Mon Sep 17 00:00:00 2001 From: David Francoeur Date: Fri, 15 Dec 2023 13:49:51 -0500 Subject: [PATCH 1/2] Add relevant files to scala-steward config This will avoid that our contributors have to spend time on things like: #42 --- .scala-steward.conf | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.scala-steward.conf b/.scala-steward.conf index c7d2bf3..01e2e8f 100644 --- a/.scala-steward.conf +++ b/.scala-steward.conf @@ -1,7 +1,6 @@ updates.fileExtensions = [ "build.sbt", - "src/main/g8/build.sbt", - "mill/build.sc", + "src/main/g8/$if(mill.truthy)$.$endif$/build.sc", + "src/main/g8/$if(sbt.truthy)$.$endif$/build.sbt", "src/main/g8/smithy-build.json", - "mill/smithy-build.json" ] From 681d2e02d8e7dbb315de92a121a41f5f27fede67 Mon Sep 17 00:00:00 2001 From: David Francoeur Date: Mon, 18 Dec 2023 09:42:46 -0500 Subject: [PATCH 2/2] Add phantom dependencies for scala-steward to update templates --- build.sbt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/build.sbt b/build.sbt index ef1a550..a58e9a5 100644 --- a/build.sbt +++ b/build.sbt @@ -1,5 +1,6 @@ lazy val root = (project in file(".")) .enablePlugins(ScriptedPlugin) + .settings(phantomDeps) .settings( name := "smithy4s.g8", Test / test := { @@ -13,3 +14,11 @@ lazy val root = (project in file(".")) "-Dfile.encoding=UTF-8" ) ) + +// https://github.com/scala-steward-org/scala-steward/issues/1286#issuecomment-582083463 +// ensuring deps are updated inside of templates files +lazy val phantomDeps = Def.settings( + libraryDependencies ++= Seq( + "org.http4s" %% "http4s-ember-server" % "0.23.16" + ) +)