You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Where:
Build file '/Users/rperezalcolea/Projects/github/rpalcolea/develocity-gradle-8_8-rc-1-issue/build.gradle' line: 32
* What went wrong:
A problem occurred evaluating root project 'develocity-gradle-8_8-issue'.
> Could not find method testDistribution() for arguments [build_f1zxr60n0efii4e7esqgee7dt$_run_closure1$_closure4$_closure6$_closure7@88f523c] on extension 'develocity' of type com.gradle.develocity.agent.gradle.internal.a_Decorated.
* Try:
> Run with --info or --debug option to get more log output.
> Get more help at https://help.gradle.org.
It looks like the Test task is being decorated with com.gradle.develocity.agent.gradle.internal.DevelocityConfigurationInternal instead of com.gradle.develocity.agent.gradle.internal.test.DevelocityTestConfigurationInternal
Expected Behavior
It should decorate the Test task using DevelocityTestConfiguration and DevelocityTestConfigurationInternal accordingly
Thanks for the report @rpalcolea, this will be fixed in the next RC.
Notice however that the pattern tasks.withType(Test) { ... } causes all Test tasks on every subproject to be realized regardless of whether they will be actually used in a particular Gradle invocation.
In general, It's be better to use the tasks.withType(Test).configureEach { ... } pattern instead.
Yeah... I totally forgot when putting the thing together. We actually have some internal linting to continuously move build files that missed that, it is a great callout! thanks for bringing it up :) and also thanks for looking at this !
Current Behavior
When applying Develocity plugin via a Settings plugin, ex.
And configuring the test tasks to use
testDistribution
:results in:
It looks like the
Test
task is being decorated withcom.gradle.develocity.agent.gradle.internal.DevelocityConfigurationInternal
instead ofcom.gradle.develocity.agent.gradle.internal.test.DevelocityTestConfigurationInternal
Expected Behavior
It should decorate the
Test
task usingDevelocityTestConfiguration
andDevelocityTestConfigurationInternal
accordinglyContext (optional)
No response
Steps to Reproduce
reproducer in https://github.com/rpalcolea/gradle-enterprise-plugin-test-distribution-issue/tree/main
Gradle version
8.8-rc.1
Gradle version that used to work
8.7
Build scan URL (optional)
No response
Your Environment (optional)
No response
The text was updated successfully, but these errors were encountered: