Skip to content

definedTests taking a long time, possibly because of internalDependencyClasspath #7512

Answered by nmarton-da
stefanobaghino asked this question in Q&A
Discussion options

You must be logged in to vote

Oh I figured out: it is the sbt-jupiter-interface plugin 🎉

I wanted to narrow down what is expensive in that call, so I spelled out the default Tests.discover there, and to my big surprise all the waits disappeared.
Then I was looking for things which override the definedTests, and voila.
The problem in our build was that that plugin is by default activated on all subprojects, and since the definedTests task results are not cached, recursively executes to all subprojects, it causes quite some wait times.
Do you know maybe how to turn around the black-list approach with auto-plugins to a white-list approach? (using the auto plugin but not letting it automatically active in all projects, ju…

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@eed3si9n
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by stefanobaghino
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants