Is there way in Gradle how to call parent function from subproject? If I have parent project and function defined as:
def testMethod() {
println("TestMethod called from directory ${project.projectDir}")
}
and subproject as:
task subTest << {
println("I'm subTest task from ${project.projectDir}")
testMethod()
}
calling this from commandline results in:
Could not find method testMethod() for arguments [] on root project 'subsys1'