Skip to content

Commit

Permalink
Make the core module respect custom repositories
Browse files Browse the repository at this point in the history
  • Loading branch information
Gedochao committed Jan 8, 2025
1 parent 7c8e831 commit 2f9e194
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ trait Core extends ScalaCliCrossSbtModule
with HasTests
with ScalaCliScalafixModule {
def crossScalaVersion = crossValue

def moduleDeps = Seq(
config(crossScalaVersion)
)
Expand All @@ -378,6 +379,9 @@ trait Core extends ScalaCliCrossSbtModule
super.scalacOptions() ++ asyncScalacOptions(crossScalaVersion)
}

def repositoriesTask =
T.task(super.repositoriesTask() ++ deps.customRepositories)

def ivyDeps = super.ivyDeps() ++ Agg(
Deps.bloopRifle.exclude(("org.scala-lang.modules", "scala-collection-compat_2.13")),
Deps.collectionCompat,
Expand Down

0 comments on commit 2f9e194

Please sign in to comment.