gradle Cannot set the value of read-only property ‘classDirectories‘ for task *

gradle Cannot set the value of read-only property ‘classDirectories‘ for task *,第1张

gradle Cannot set the value of read-only property ‘classDirectories‘ for task *

报错背景:gradle编译
报错提示:Cannot set the value of read-only property ‘classDirectories’ for task ‘…’ of type org.gradle.testing.jacoco.tasks.JacocoReport

原因:
gradle的classDirectories属性在5.6之后的版本里已经废弃掉了,classDirectories 由classDirectories.from替代了,

具体可见:gradle的关于classDirectories废弃的文档:
https://docs.gradle.org/current/userguide/upgrading_version_5.html#other_deprecated_behaviors_and_apis

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5692748.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-17
下一篇 2022-12-17

发表评论

登录后才能评论

评论列表(0条)

保存