Made the pegasus plugin Gradle 2.0 happy rb=322392

The change makes the eclipse configuration code work exactly the same with all versions of Gradle.