Upgrade to Gradle 3.5.
I've run the following command line:
./gradlew wrapper --gradle-version=3.5
Among other things, this fixes the issue described in https://github.com/gradle/gradle/issues/1387
("Exception: java.lang.IllegalStateException thrown from the UncaughtExceptionHandler in thread...").
I've run into this issue when adding more instrumentation logic to the Java agent. It makes
debugging the actual issue nearly impossible as any useful debug output is lost.
While there, also upgrade the errorprone-plugin to 0.0.10 (was 0.0.9) because the previous version
is broken in Gradle 3.5, cf. https://github.com/tbroyer/gradle-errorprone-plugin/issues/37.
diff --git a/build.gradle b/build.gradle
index 319a3bf..2ca6b29 100644
--- a/build.gradle
+++ b/build.gradle
@@ -8,7 +8,7 @@
}
dependencies {
classpath 'ru.vyarus:gradle-animalsniffer-plugin:1.3.0'
- classpath 'net.ltgt.gradle:gradle-errorprone-plugin:0.0.9'
+ classpath 'net.ltgt.gradle:gradle-errorprone-plugin:0.0.10'
classpath "net.ltgt.gradle:gradle-apt-plugin:0.10"
}
}
diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar
index 2942b50..e963759 100644
--- a/gradle/wrapper/gradle-wrapper.jar
+++ b/gradle/wrapper/gradle-wrapper.jar
Binary files differ
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
index e560f34..c5cc309 100644
--- a/gradle/wrapper/gradle-wrapper.properties
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -1,6 +1,6 @@
-#Sat Mar 18 12:22:37 PDT 2017
+#Tue Jul 04 00:25:44 CEST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-3.5-bin.zip