GRADLE-2819: handle nested parent poms, referenced by root project