diff --git a/build.gradle b/build.gradle
index 24126e6f4a228338fc234db051e8b681cad16439..bfa6d11f65af4bf533b3689da4446b45df021ec3 100644
--- a/build.gradle
+++ b/build.gradle
@@ -66,7 +66,7 @@ buildscript {
         jcenter()
     }
     dependencies {
-        classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.2'
+        classpath 'com.github.jengelman.gradle.plugins:shadow:4.0.4'
     }
 }
 apply plugin: 'com.github.johnrengelman.shadow'
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
index 7e98c337e7d3b987786c1e9498d294ccdc673c90..eb78b8ef41b470cbf6f61351497b5981d1d3008a 100644
--- a/gradle/wrapper/gradle-wrapper.properties
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -4,4 +4,4 @@ distributionBase=GRADLE_USER_HOME
 distributionPath=wrapper/dists
 zipStoreBase=GRADLE_USER_HOME
 zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-5.0-milestone-1-all.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-5.1-all.zip