Skip to content

Commit

Permalink
ci: run missinglinkCheck in CI (#199)
Browse files Browse the repository at this point in the history
* ci: run missinglinkCheck in CI

* format

* add false positives

* fix: missinglink check

* fix: Decrease heap

Co-authored-by: Jakub Janeček <[email protected]>
  • Loading branch information
sideeffffect and jakubjanecek authored Mar 8, 2021
1 parent 45230ac commit fbf36c0
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .sbtopts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
-J-Xmx4g
-J-Xmx8g
-J-XX:+UseG1GC
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,6 @@ lazy val sslConfig = project

addCommandAlias(
"check",
"; scalafmtSbtCheck; scalafmtCheckAll; +test"
"; scalafmtSbtCheck; scalafmtCheckAll; missinglinkCheck; +test"
)
addCommandAlias("fix", "; compile:scalafix; test:scalafix; scalafmtSbt; scalafmtAll")
17 changes: 16 additions & 1 deletion project/BuildSettings.scala
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import ch.epfl.scala.sbtmissinglink.MissingLinkPlugin.autoImport._
import com.typesafe.sbt.site.SitePlugin.autoImport._
import mdoc.MdocPlugin.autoImport._
import microsites.CdnDirectives
import microsites.MicrositesPlugin.autoImport._
import sbt.Keys._
import sbt._
import sbt.nio.Keys._
import sbt.{Def, _}
import sbtunidoc.ScalaUnidocPlugin.autoImport._
import sbtversionpolicy.SbtVersionPolicyPlugin.autoImport._
import scalafix.sbt.ScalafixPlugin.autoImport._
Expand Down Expand Up @@ -47,6 +48,20 @@ object BuildSettings {
"-Ywarn-unused", // necessary for Scalafix RemoveUnused rule (not present in sbt-tpolecat for 2.13)
"-P:silencer:checkUnused"
) ++ (if (scalaVersion.value.startsWith("2.13")) List("-Wmacros:after") else List.empty),
missinglinkExcludedDependencies ++= List(
moduleFilter(organization = "ch.qos.logback"),
moduleFilter(organization = "com.datastax.oss", name = "java-driver-core"),
moduleFilter(organization = "com.zaxxer", name = "HikariCP"),
moduleFilter(organization = "io.lettuce"),
moduleFilter(organization = "io.micrometer"),
moduleFilter(organization = "io.netty"),
moduleFilter(organization = "io.projectreactor", name = "reactor-core"),
moduleFilter(organization = "io.sentry", name = "sentry"),
moduleFilter(organization = "org.apache.kafka", name = "kafka-clients"),
moduleFilter(organization = "org.codehaus.groovy", name = "groovy"),
moduleFilter(organization = "org.flywaydb", name = "flyway-core"),
moduleFilter(organization = "org.slf4j", name = "slf4j-api")
),
javacOptions ++= Seq("-source", "1.8", "-target", "1.8"),
Test / publishArtifact := false
)
Expand Down
1 change: 1 addition & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ addSbtPlugin("com.47deg" % "sbt-microsites" % "1.3.2")
addSbtPlugin("com.eed3si9n" % "sbt-unidoc" % "0.4.3")
addSbtPlugin("com.thoughtworks.sbt-api-mappings" % "sbt-api-mappings" % "3.0.0")
addSbtPlugin("ch.epfl.scala" % "sbt-version-policy" % "1.0.0-RC5")
addSbtPlugin("ch.epfl.scala" % "sbt-missinglink" % "0.3.2")

0 comments on commit fbf36c0

Please sign in to comment.