I'm writing a SBT plugin. I would like to use Circe JSON library, but it requires the Macro Paradise compiler plugin on Scala 2.10.
Normally you add compiler plugins to build.sbt
and SBT plugins to project/plugins.sbt
.
Now when you're building a SBT plugin, the other plugins become dependencies, so you put them to build.sbt
and they are propagated to the projects where you use your SBT plugin.
When I put the following snippet in build.sbt
of my SBT plugin:
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full)
Does the Paradise compiler plugin propagate to downstream projects?