lazy val commonSettings = Seq( Compile / compile / javacOptions ++= Seq("-source", "1.8", "-target", "1.8"), libraryDependencies ++= { CrossVersion.partialVersion(scalaVersion.value) match { case Some((2, _)) => Seq(compilerPlugin(Dependencies.kindProjector), compilerPlugin(Dependencies.betterMonadicFor)) case _ => Seq.empty } }, scalacOptions += { CrossVersion.partialVersion(scalaVersion.value) match { case Some((2, _)) => "-Wconf:any:wv" case _ => "-Wconf:any:v" } }, Test / fork := true, resolvers += Resolver.sonatypeRepo("releases"), ) lazy val noPublishSettings = commonSettings ++ Seq(publish := {}, publishArtifact := false, publishTo := None, publish / skip := true) lazy val root = (project in file(".")) .settings(noPublishSettings) .settings(name := "Trace4Cats Docs") .aggregate(example) lazy val example = (project in file("modules/example")) .settings(noPublishSettings) .settings( name := "trace4cats-example", libraryDependencies ++= Seq( Dependencies.trace4catsCore, Dependencies.trace4catsFs2, Dependencies.trace4catsTailSampling, Dependencies.trace4catsAvro, Dependencies.trace4catsAvroExporter, Dependencies.trace4catsAvroServer, Dependencies.trace4catsJaeger, Dependencies.trace4catsCloudtraceGrpc, Dependencies.trace4catsCloudtraceHttp, Dependencies.trace4catsOtlpGrpc, Dependencies.trace4catsOtlpHttp, Dependencies.trace4catsOtelJaeger, Dependencies.trace4catsDatadog, Dependencies.trace4catsNewrelic, Dependencies.trace4catsZipkin, Dependencies.trace4catsZio, Dependencies.trace4catsNatchez, Dependencies.trace4catsSttpClient3, Dependencies.trace4catsHttp4sClient, Dependencies.trace4catsHttp4sServer, Dependencies.trace4catsTailSamplingCache, Dependencies.trace4catsTailSamplingRedis, Dependencies.trace4catsDynamicSamplingHttp4s, Dependencies.trace4catsDynamicSamplingHttpServer, Dependencies.catsEffect, Dependencies.http4sBlazeClient, Dependencies.http4sBlazeServer, Dependencies.sttpClient3Http4s ) )