Fixed dynamic properties issue. check http://forums.gradle.org/gradle/topics/6caj90zrfqr0l
Added idea plugin.
Moved artifactId, version to under uploadArchives.repositories.mavenDeployer.pom