Skip to content

Commit

Permalink
Add sbt-tpolecat
Browse files Browse the repository at this point in the history
- And fix some warnings
  • Loading branch information
froth committed Apr 17, 2024
1 parent ac6d8a8 commit 4d3c6bc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,7 @@ lazy val root = (project in file("."))
"org.typelevel" %% "cats-effect-std" % "3.5.4",
"org.typelevel" %% "cats-effect-testing-specs2" % "1.5.0" % Test,
"org.typelevel" %% "munit-cats-effect-3" % "1.0.7" % Test
)
),
// Add sbt plugins here, so that scala steward updates them in the g8 template
addSbtPlugin("org.typelevel" % "sbt-tpolecat" % "0.5.1"),
)
4 changes: 3 additions & 1 deletion src/main/g8/build.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import org.typelevel.sbt.tpolecat.*

ThisBuild / organization := "com.example"
ThisBuild / scalaVersion := $if(scala3.truthy)$"3.4.0"$else$"2.13.13"$endif$
ThisBuild / tpolecatDefaultOptionsMode := VerboseMode;

lazy val root = (project in file(".")).settings(
name := "$name;format="norm"$",
Expand All @@ -15,6 +18,5 @@ lazy val root = (project in file(".")).settings(
compilerPlugin("com.olegpy" %% "better-monadic-for" % "0.3.1")$endif$$if(testlib-use-cats-effect-testing-specs2.truthy)$,
"org.typelevel" %% "cats-effect-testing-specs2" % "1.5.0" % Test$else$$endif$$if(testlib-use-munit-cats-effect-3.truthy)$,
"org.typelevel" %% "munit-cats-effect-3" % "1.0.7" % Test$else$$endif$
)
)
1 change: 1 addition & 0 deletions src/main/g8/project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
addSbtPlugin("org.typelevel" % "sbt-tpolecat" % "0.5.1")
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package $package$

import cats.effect.{IO, SyncIO}
import munit.CatsEffectSuite

class HelloWorldSuite extends CatsEffectSuite {
Expand Down

0 comments on commit 4d3c6bc

Please sign in to comment.