Use libs for libraryDependencies when it's found in libs
Closed this issue · 0 comments
kevin-lee commented
Task
Summary
Use lazy val libs = new {}
for Dependency
added to libraryDependencies
when the Dependency
is found in the libs
.
Project Details
Version: 1.1.1
Description
e.g.)
lazy val libs = new {
val cats = "org.typelevel" %% "cats-core" % "2.4.2"
}
lazy val root = (project in file("."))
.settings(
name := "my-project",
libraryDependencies ++= Seq(
libs.cats,
"another" %% "lib" % "9.9.9"
)
)