Skip to content

Commit

Permalink
Make semanticDbEnablePluginScalacOptions protected (#2951)
Browse files Browse the repository at this point in the history
This makes it accessible for downstream tooling.

* Use case: joan38/mill-scalafix#172

Essentially, this is a backport of what we have in Mill 0.11, so this PR
is in the spirit of the previous pull requests we merged.

Pull request: #2951
  • Loading branch information
lefou authored Jan 6, 2024
1 parent 21ff06c commit 3688979
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scalalib/src/mill/scalalib/SemanticDbJavaModule.scala
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ trait SemanticDbJavaModule extends JavaModule { hostModule =>
/**
* Scalac options to activate the compiler plugins.
*/
private def semanticDbEnablePluginScalacOptions: Target[Seq[String]] = T {
protected def semanticDbEnablePluginScalacOptions: T[Seq[String]] = T {
val resolvedJars = resolveDeps(semanticDbPluginIvyDeps.map(_.map(_.exclude("*" -> "*"))))()
resolvedJars.iterator.map(jar => s"-Xplugin:${jar.path}").toSeq
}
Expand Down

0 comments on commit 3688979

Please sign in to comment.