-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add sbt-explicit-dependencies and sbt-missinglink plugins (#825)
* Add sbt-explicit-dependencies and sbt-missinglink plugins * Add sbt-explicit-dependencies and sbt-missinglink plugins * Add sbt-explicit-dependencies and sbt-missinglink plugins * trigger GitHub actions * trigger GitHub actions * trigger GitHub actions
- Loading branch information
1 parent
5319937
commit da126cc
Showing
5 changed files
with
50 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import MimaSettings.mimaSettings | ||
import ch.epfl.scala.sbtmissinglink.MissingLinkPlugin.missinglinkConflictsTag | ||
import zio.sbt.githubactions.Step.SingleStep | ||
|
||
enablePlugins(ZioSbtEcosystemPlugin, ZioSbtCiPlugin) | ||
|
@@ -35,6 +36,18 @@ inThisBuild( | |
SingleStep( | ||
name = "Mima check", | ||
run = Some("sbt mimaChecks") | ||
), | ||
SingleStep( | ||
name = "Undeclared dependencies check", | ||
run = Some("sbt undeclaredCompileDependencies") | ||
), | ||
SingleStep( | ||
name = "Unused dependencies check", | ||
run = Some("sbt unusedCompileDependenciesTest") | ||
), | ||
SingleStep( | ||
name = "MissingLink", | ||
run = Some("sbt missinglinkCheck") | ||
) | ||
), | ||
pgpPassphrase := sys.env.get("PGP_PASSWORD").map(_.toArray), | ||
|
@@ -45,7 +58,8 @@ inThisBuild( | |
url("https://github.com/zio/zio-telemetry/"), | ||
"scm:git:[email protected]:zio/zio-telemetry.git" | ||
) | ||
) | ||
), | ||
concurrentRestrictions += Tags.limit(missinglinkConflictsTag, 1) | ||
) | ||
) | ||
|
||
|
@@ -103,6 +117,7 @@ lazy val opentracing = | |
) | ||
.settings(libraryDependencies ++= Dependencies.opentracing) | ||
.settings(mimaSettings(failOnProblem = true)) | ||
.settings(unusedCompileDependenciesFilter -= moduleFilter("org.scala-lang.modules", "scala-collection-compat")) | ||
|
||
lazy val opentelemetry = | ||
project | ||
|
@@ -116,6 +131,7 @@ lazy val opentelemetry = | |
) | ||
.settings(libraryDependencies ++= Dependencies.opentelemetry) | ||
.settings(mimaSettings(failOnProblem = true)) | ||
.settings(unusedCompileDependenciesFilter -= moduleFilter("org.scala-lang.modules", "scala-collection-compat")) | ||
|
||
lazy val opencensus = project | ||
.in(file("opencensus")) | ||
|
@@ -128,6 +144,7 @@ lazy val opencensus = project | |
) | ||
.settings(libraryDependencies ++= Dependencies.opencensus) | ||
.settings(mimaSettings(failOnProblem = true)) | ||
.settings(unusedCompileDependenciesFilter -= moduleFilter("io.opencensus", "opencensus-impl")) | ||
|
||
lazy val opentracingExample = | ||
project | ||
|
@@ -180,5 +197,6 @@ lazy val docs = | |
ScalaUnidoc / unidoc / unidocProjectFilter := inProjects(opentracing, opentelemetry, opencensus), | ||
scalacOptions --= Seq("-Yno-imports", "-Xfatal-warnings") | ||
) | ||
.settings(unusedCompileDependenciesFilter -= moduleFilter("org.scalameta", "mdoc")) | ||
.dependsOn(opentracing, opentelemetry, opencensus) | ||
.enablePlugins(WebsitePlugin) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
val zioSbtVersion = "0.4.0-alpha.25" | ||
|
||
addSbtPlugin("com.thoughtworks.sbt-api-mappings" % "sbt-api-mappings" % "3.0.2") | ||
addSbtPlugin("com.github.sbt" % "sbt-unidoc" % "0.5.0") | ||
addSbtPlugin("ch.epfl.scala" % "sbt-bloop" % "1.5.17") | ||
addSbtPlugin("org.typelevel" % "sbt-tpolecat" % "0.5.1") | ||
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.2") | ||
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.5.2") | ||
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.0.11") | ||
addSbtPlugin("dev.zio" % "zio-sbt-ci" % zioSbtVersion) | ||
addSbtPlugin("dev.zio" % "zio-sbt-ecosystem" % zioSbtVersion) | ||
addSbtPlugin("dev.zio" % "zio-sbt-website" % zioSbtVersion) | ||
addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "1.1.3") | ||
addSbtPlugin("com.thoughtworks.sbt-api-mappings" % "sbt-api-mappings" % "3.0.2") | ||
addSbtPlugin("com.github.sbt" % "sbt-unidoc" % "0.5.0") | ||
addSbtPlugin("ch.epfl.scala" % "sbt-bloop" % "1.5.17") | ||
addSbtPlugin("org.typelevel" % "sbt-tpolecat" % "0.5.1") | ||
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.2") | ||
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.5.2") | ||
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "2.0.11") | ||
addSbtPlugin("dev.zio" % "zio-sbt-ci" % zioSbtVersion) | ||
addSbtPlugin("dev.zio" % "zio-sbt-ecosystem" % zioSbtVersion) | ||
addSbtPlugin("dev.zio" % "zio-sbt-website" % zioSbtVersion) | ||
addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "1.1.3") | ||
addSbtPlugin("com.github.cb372" % "sbt-explicit-dependencies" % "0.3.1") | ||
addSbtPlugin("ch.epfl.scala" % "sbt-missinglink" % "0.3.6") | ||
|
||
libraryDependencies += "org.snakeyaml" % "snakeyaml-engine" % "2.7" | ||
libraryDependencies += "com.spotify" % "missinglink-core" % "0.2.11" | ||
|
||
resolvers += Resolver.sonatypeRepo("public") |