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
Self Hosted Agent on Windows 10, agent version 2.174.3
Issue Description
Gradle task fails on multi project with JaCoCo enabled, error caused by set of a readonly property. The problem seems related to a missing fix from the c99aa3b
What went wrong:
Execution failed for task ':platform-app:jacocoTestReport'.
Cannot set the value of read-only property 'classDirectories' for task ':platform-app:jacocoTestReport' of type org.gradle.testing.jacoco.tasks.JacocoReport.
> Task :platform-app:distZip
> Task :platform-app:shadowJar
> Task :platform-app:startShadowScripts
> Task :platform-app:shadowDistTar
> Task :platform-app:shadowDistZip
> Task :platform-app:assemble
> Task :platform-app:compileTestJava
> Task :platform-app:processTestResources NO-SOURCE
> Task :platform-app:testClasses
> Task :platform-app:test
> Task :platform-app:jacocoTestReport
FAILURE: Build failed with an exception. FAILED
* Where:
Build file 'C:\agent\_work\4\s\build.gradle' line: 24
* What went wrong:
Execution failed for task ':platform-app:jacocoTestReport'.
> Cannot set the value of read-only property 'classDirectories' for task ':platform-app:jacocoTestReport' of type org.gradle.testing.jacoco.tasks.JacocoReport.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.7/userguide/command_line_interface.html#sec:command_line_warnings
21 actionable tasks: 18 executed, 3 up-to-date
* Get more help at https://help.gradle.org
BUILD FAILED in 1m 23s
The text was updated successfully, but these errors were encountered:
Hi @gnegnegne we have rolled out related changes - you can set 'gradle5xOrHigher' currently - to signalize that you use Gradle >= 5.x if there is JaCoCo code coverage enabled.
Question, Bug, or Feature?
Type: Bug
Enter Task Name: GradleV2
Environment
Server - Azure Pipelines or TFS on-premises?
Agent - Hosted or Private:
Issue Description
Gradle task fails on multi project with JaCoCo enabled, error caused by set of a readonly property. The problem seems related to a missing fix from the c99aa3b
That commit didn't fix the line 24:
azure-pipelines-tasks/common-npm-packages/codecoverage-tools/codecoverageconstants.ts
Line 24 in 18cd04c
could you confirm that it is related @anatolybolshakov ?
Task logs
Troubleshooting
Checkout how to troubleshoot failures and collect debug logs: https://docs.microsoft.com/en-us/vsts/build-release/actions/troubleshooting
Error logs
The text was updated successfully, but these errors were encountered: