diff --git a/README.md b/README.md index 02696f8b..01036304 100644 --- a/README.md +++ b/README.md @@ -77,7 +77,9 @@ project you can enable ProGuard instead of the default R8 compiler: ... configurations.all { resolutionStrategy { - force 'net.sf.proguard:proguard-gradle:7.0.0' + dependencySubstitution { + substitute module('net.sf.proguard:proguard-gradle') with module('com.guardsquare:proguard-gradle:7.0.0') + } } } } diff --git a/docs/md/manual/gradleplugin.md b/docs/md/manual/gradleplugin.md index e47408c4..3af7aee3 100644 --- a/docs/md/manual/gradleplugin.md +++ b/docs/md/manual/gradleplugin.md @@ -13,7 +13,9 @@ project you can enable ProGuard instead of the default R8 compiler: ... configurations.all { resolutionStrategy { - force 'net.sf.proguard:proguard-gradle:7.0.0' + dependencySubstitution { + substitute module('net.sf.proguard:proguard-gradle') with module('com.guardsquare:proguard-gradle:7.0.0') + } } } } diff --git a/examples/android/build.gradle b/examples/android/build.gradle index 48cff116..75e1f04b 100644 --- a/examples/android/build.gradle +++ b/examples/android/build.gradle @@ -10,7 +10,9 @@ buildscript { resolutionStrategy { // Override the default version of ProGuard // with the most recent one. - force 'net.sf.proguard:proguard-gradle:7.0.0' + dependencySubstitution { + substitute module('net.sf.proguard:proguard-gradle') with module('com.guardsquare:proguard-gradle:7.0.0') + } } } } diff --git a/examples/android/settings.gradle b/examples/android/settings.gradle new file mode 100644 index 00000000..e69de29b