How to get a property of a Task from a TaskReference

(GS) #1


I have included project B via includeBuild '../ProjectB' in project A.
When defining a task in project A, how can I get a property of a task in project B?

I can depend on a task from project B using dependsOn gradle.includedBuild('ProjectB').task('T') but
the return type there is TaskReference and there does not seem to be a way to get a property of T.

I would like to use the property Sync#destinationDir of the installDist task of project B in a task of project A.