Skip to content

Commit

Permalink
Fixed incorrect accept filter
Browse files Browse the repository at this point in the history
  • Loading branch information
lefou committed Apr 7, 2022
1 parent ef714d7 commit c8e87fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrib/bloop/src/mill/contrib/bloop/BloopImpl.scala
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class BloopImpl(ev: () => Evaluator, wd: os.Path) extends ExternalModule { outer

// Compute all transitive modules from build children and via moduleDeps
@deprecated("Use mill.internal.ModuleUtils.transitiveModules instead", since = "mill 0.10.3")
def transitiveModules(
private[bloop] def transitiveModules(
mod: define.Module,
found: Seq[define.Module] = Seq.empty
): Seq[define.Module] = {
Expand All @@ -112,7 +112,7 @@ class BloopImpl(ev: () => Evaluator, wd: os.Path) extends ExternalModule { outer
protected def computeModules: Seq[JavaModule] = {
val eval = ev()
if (eval != null)
ModuleUtils.transitiveModules(eval.rootModule, accept = _.isInstanceOf[JavaModule])
ModuleUtils.transitiveModules(eval.rootModule, accept)
.collect { case jm: JavaModule => jm }
else
Seq.empty
Expand Down

0 comments on commit c8e87fc

Please sign in to comment.