@@ -19,13 +19,18 @@ inThisBuild {
1919 ScalacOptions .privateKindProjector
2020 )
2121 ),
22+ semanticdbEnabled := true ,
23+ semanticdbVersion := scalafixSemanticdb.revision,
2224 versionScheme := Some (" early-semver" ),
2325 githubWorkflowJavaVersions := List (JavaSpec .temurin(" 17" )),
2426 githubWorkflowTargetTags ++= Seq (" v*" ),
2527 githubWorkflowPublishTargetBranches := Seq (
2628 RefPredicate .StartsWith (Ref .Tag (" v" )),
2729 RefPredicate .Equals (Ref .Branch (" main" ))
2830 ),
31+ githubWorkflowBuild := Seq (
32+ WorkflowStep .Sbt (List (" lintEnforce" , " test" ))
33+ ),
2934 githubWorkflowPublish := Seq (
3035 WorkflowStep .Sbt (
3136 commands = List (" ci-release" ),
@@ -60,22 +65,26 @@ lazy val root =
6065 .settings(
6166 name := " fs2-kafka-jsonschema" ,
6267 libraryDependencies ++= {
63- val circe = " io.circe"
6468 val fd4s = " com.github.fd4s"
6569 val tapir = " com.softwaremill.sttp.tapir"
6670 val fs2KafkaV = " 3.5.1"
6771 val tapirV = " 1.10.13"
6872
6973 Seq (
70- fd4s %% " fs2-kafka" % fs2KafkaV,
71- tapir %% " tapir-json-pickler" % tapirV,
72- tapir %% " tapir-apispec-docs" % tapirV,
73- " com.softwaremill.sttp.apispec" %% " jsonschema-circe" % " 0.10.0" ,
74- " org.scala-lang.modules" %% " scala-collection-compat" % " 2.12.0" ,
75- " org.typelevel " %% " munit -cats-effect " % " 2.0.0-M3 " % Test ,
76- " com.dimafeng " %% " testcontainers-scala-munit " % " 0.41.4 " % Test ,
77- " ch.qos.logback" % " logback-classic" % " 1.5.6" % Test ,
78- " io.confluent" % " kafka-json-schema-serializer" % " 7.6.1"
74+ fd4s %% " fs2-kafka" % fs2KafkaV,
75+ tapir %% " tapir-json-pickler" % tapirV,
76+ tapir %% " tapir-apispec-docs" % tapirV,
77+ " com.softwaremill.sttp.apispec" %% " jsonschema-circe" % " 0.10.0" ,
78+ " org.scala-lang.modules" %% " scala-collection-compat" % " 2.12.0" ,
79+ " com.disneystreaming " %% " weaver -cats" % " 0.8.4 " % Test ,
80+ " io.github.embeddedkafka " %% " embedded-kafka-schema-registry " % " 7.6.1.1 " % Test ,
81+ " ch.qos.logback" % " logback-classic" % " 1.5.6" % Test ,
82+ " io.confluent" % " kafka-json-schema-serializer" % " 7.6.1"
7983 )
80- }
84+ },
85+ excludeDependencies += " org.scala-lang.modules" % " scala-collection-compat_2.13" ,
86+ testFrameworks += new TestFramework (" weaver.framework.CatsEffect" )
8187 )
88+
89+ addCommandAlias(" lint" , " ; scalafmtAll; scalafixAll" )
90+ addCommandAlias(" lintEnforce" , " ; scalafmtCheckAll; scalafixAll --check" )
0 commit comments