Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change to not include scoped dependencies in pom #145

Merged
merged 1 commit into from
Jan 21, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,19 @@ lazy val dependencySettings = Seq(
"org.typelevel" %% "cats-testkit" % catsVersion,
"org.slf4j" % "slf4j-nop" % "1.7.30"
).map(_ % Test),
addCompilerPlugin("org.typelevel" % "kind-projector" % "0.11.0" cross CrossVersion.full)
addCompilerPlugin("org.typelevel" % "kind-projector" % "0.11.0" cross CrossVersion.full),
pomPostProcess := { (node: xml.Node) =>
new xml.transform.RuleTransformer(new xml.transform.RewriteRule {
def scopedDependency(e: xml.Elem): Boolean =
e.label == "dependency" && e.child.exists(_.label == "scope")

override def transform(node: xml.Node): xml.NodeSeq =
node match {
case e: xml.Elem if scopedDependency(e) => Nil
case _ => Seq(node)
}
}).transform(node).head
}
)

lazy val mdocSettings = Seq(
Expand Down