I found how to do it: 
http://forums.gradle.org/gradle/topics/getting_maven_pom_parent_in_gradle