Skip to content

Commit

Permalink
Remove sbt-org-policies dependency syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
BenFradet committed Apr 6, 2020
1 parent 847ceb3 commit bfc91f0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 24 deletions.
1 change: 0 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ lazy val docs = (project in file("docs"))
.dependsOn(github4s)
.settings(moduleName := "github4s-docs")
.settings(micrositeSettings: _*)
.settings(docsDependencies: _*)
.settings(noPublishSettings: _*)
.enablePlugins(MicrositesPlugin)

Expand Down
41 changes: 18 additions & 23 deletions project/ProjectPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,16 @@ object ProjectPlugin extends AutoPlugin {
object autoImport {

lazy val V = new {
val scala212: String = "2.12.10"
val scala213: String = "2.13.1"
val base64: String = "0.2.9"
val cats: String = "2.1.1"
val catsEffect: String = "2.1.1"
val circe: String = "0.13.0"
val paradise: String = "2.1.1"
val simulacrum: String = "0.19.0"
val scala212: String = "2.12.10"
val scala213: String = "2.13.1"
val http4s: String = "0.21.3"
val paradise: String = "2.1.1"
val scalamock: String = "4.4.0"
val scalaTest: String = "3.1.1"
val scalatest: String = "3.1.1"
val silencer: String = "1.6.0"
}

Expand Down Expand Up @@ -71,30 +70,26 @@ object ProjectPlugin extends AutoPlugin {

lazy val coreDeps = Seq(
libraryDependencies ++= Seq(
%%("cats-core", V.cats),
%%("cats-free", V.cats),
%%("simulacrum", V.simulacrum),
%%("circe-core", V.circe),
%%("circe-generic", V.circe),
"io.circe" %% "circe-literal" % V.circe,
%%("base64", V.base64),
"org.http4s" %% "http4s-blaze-client" % V.http4s,
"org.http4s" %% "http4s-circe" % V.http4s,
%%("circe-parser", V.circe) % Test,
%%("scalamock", V.scalamock) % Test,
%%("scalatest", V.scalaTest) % Test,
compilerPlugin("com.github.ghik" % "silencer-plugin" % V.silencer cross CrossVersion.full),
"com.github.ghik" % "silencer-lib" % V.silencer % Provided cross CrossVersion.full
"org.typelevel" %% "cats-core" % V.cats,
"io.circe" %% "circe-core" % V.circe,
"io.circe" %% "circe-generic" % V.circe,
"io.circe" %% "circe-literal" % V.circe,
"com.github.marklister" %% "base64" % V.base64,
"org.http4s" %% "http4s-blaze-client" % V.http4s,
"org.http4s" %% "http4s-circe" % V.http4s,
"io.circe" %% "circe-parser" % V.circe % Test,
"org.scalamock" %% "scalamock" % V.scalamock % Test,
"org.scalatest" %% "scalatest" % V.scalatest % Test,
"com.github.ghik" % "silencer-lib" % V.silencer % Provided cross CrossVersion.full,
compilerPlugin("com.github.ghik" % "silencer-plugin" % V.silencer cross CrossVersion.full)
),
libraryDependencies ++= (CrossVersion.partialVersion(scalaBinaryVersion.value) match {
case Some((2, 13)) => Seq.empty[ModuleID]
case _ => Seq(compilerPlugin(%%("paradise", V.paradise) cross CrossVersion.full))
case _ =>
Seq(compilerPlugin("org.scalamacros" %% "paradise" % V.paradise cross CrossVersion.full))
})
)

lazy val docsDependencies: Def.Setting[Seq[ModuleID]] =
libraryDependencies += %%("scalatest", V.scalaTest)

def toCompileTestList(sequence: Seq[ProjectReference]): List[String] = sequence.toList.map {
p =>
val project: String = p.asInstanceOf[LocalProject].project
Expand Down

0 comments on commit bfc91f0

Please sign in to comment.