Skip to content

Commit

Permalink
Exclude autoconfigure modules also
Browse files Browse the repository at this point in the history
  • Loading branch information
trask committed Dec 2, 2021
1 parent 007c0a7 commit e24eb12
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@ afterEvaluate {
// classpath, which automatically inherits them, to ensure our shaded versions are used.
return@filter false
}
if (lib.name.contains("-autoconfigure-")) {
// These dependencies should not be on the test classpath, because they will auto-instrument
// the library and the tests could pass even if the javaagent instrumentation fails to apply
return@filter false
}
return@filter true
}
}
Expand Down

0 comments on commit e24eb12

Please sign in to comment.