Skip to content

Commit

Permalink
fix(core): Get rid of redundant logback dependency (#398)
Browse files Browse the repository at this point in the history
  • Loading branch information
flipp5b authored Jun 2, 2024
1 parent cc00383 commit aabcf33
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@ trait Bot4sTelegramModule extends CrossScalaModule {
library.catsCore,
library.catsFree,
library.sttpCore,
library.scalaLogging,
library.logback
library.scalaLogging
)
}

Expand Down Expand Up @@ -195,11 +194,17 @@ object akka extends Module {
}

object examples extends Module {
trait ExamplesJvmCommon extends Bot4sTelegramCrossPlatform {
override val platformSegment: String = "jvm"

override def ivyDeps = super.ivyDeps() ++ Agg(
library.logback
)
}

object jvm extends Cross[ExamplesJvmModule](ScalaVersions)
trait ExamplesJvmModule extends Bot4sTelegramCrossPlatform {
override val platformSegment: String = "jvm"
override val location: String = "examples"
trait ExamplesJvmModule extends ExamplesJvmCommon {
override val location: String = "examples"

override def ivyDeps = super.ivyDeps() ++ Agg(
library.scalajHttp,
Expand All @@ -211,9 +216,8 @@ object examples extends Module {
}

object catsjvm extends Cross[ExamplesCatsModule](ScalaVersions)
trait ExamplesCatsModule extends Bot4sTelegramCrossPlatform {
override val platformSegment: String = "jvm"
override val location: String = "cats"
trait ExamplesCatsModule extends ExamplesJvmCommon {
override val location: String = "cats"

override def ivyDeps = super.ivyDeps() ++ Agg(
library.asyncHttpClientBackendCats,
Expand All @@ -226,9 +230,8 @@ object examples extends Module {
}

object cats3jvm extends Cross[ExamplesCats3Module](ScalaVersions)
trait ExamplesCats3Module extends Bot4sTelegramCrossPlatform {
override val platformSegment: String = "jvm"
override val location: String = "cats"
trait ExamplesCats3Module extends ExamplesJvmCommon {
override val location: String = "cats"

override def ivyDeps = T {
super.ivyDeps() ++ Agg(
Expand All @@ -243,9 +246,8 @@ object examples extends Module {
}

object ziojvm extends Cross[ExamplesZIOModule](ScalaVersions)
trait ExamplesZIOModule extends Bot4sTelegramCrossPlatform {
override val platformSegment: String = "jvm"
override val location: String = "zio"
trait ExamplesZIOModule extends ExamplesJvmCommon {
override val location: String = "zio"

override def ivyDeps = T {
super.ivyDeps() ++ Agg(
Expand All @@ -263,9 +265,8 @@ object examples extends Module {
}

object monixjvm extends Cross[ExamplesMonixModule](ScalaVersions)
trait ExamplesMonixModule extends Bot4sTelegramCrossPlatform {
override val platformSegment: String = "jvm"
override val location: String = "monix"
trait ExamplesMonixModule extends ExamplesJvmCommon {
override val location: String = "monix"

override def ivyDeps = T {
super.ivyDeps() ++ Agg(
Expand Down

0 comments on commit aabcf33

Please sign in to comment.