Make build compatiable with Gradle version 1.0-miestone-3

I have tested with gradle release and gradle idea.

Just use this  way to show the changes.