Gradle 4.0.2 is out!
This bug-fix release addresses two regressions in 4.0/4.0.1 that may lead to hanging build executions and one that can cause issues with dependency excludes. If your project uses Gradle 4.0 or 4.0.1, please update to 4.0.2.
- gradle/gradle#2415: Resolving metadata from parent POM can hang the build
gradle/gradle#2407: Exceptions in
@OutputFilesmethod can hang the build w/o reporting exceptions
gradle/gradle#2480: Dependency excludes defined in a
beforeResolvehook should be respected
Switch your build to use Gradle 4.0.2 by updating your wrapper properties:
./gradlew wrapper --gradle-version=4.0.2
Standalone downloads are available at https://gradle.org/install.
Release notes: https://docs.gradle.org/4.0.2/release-notes.html