Upgrade to Gradle Wrapper 1.8. Add exclude dirs for IntelliJ module into Gradle build.