This message was deleted.
# plugin-development
s
This message was deleted.
j
I am getting
Copy code
> Property 'outputLocation' is declared as an output property of Report junitXml (type DefaultJUnitXmlReport) but does not have a task associated with it.
in gradle 7.6.3 as well as 8.4
is it because in TestTaskReports,
getJunitXml
should be annotated with
@Nested
?
v
I think if you change in the example in that comment
Copy code
val regularFileProperty = jacocoReportTask.map { it.reports.xml.outputLocation }.get()
to
Copy code
val regularFileProperty = jacocoReportTask.map { it.reports.xml.outputLocation.get() }
it should work
j
Thanks ill try that...
v
The problem is, that the task dependency is not forwarded into that nested property that is get by the outer
get()
. But if you do the
get()
in the
map()
, then the provider used on
inDir
is the original task provider one which has the proper task dependency.