diff --git a/htmlSanityCheck-core/build.gradle b/htmlSanityCheck-core/build.gradle
index 6255ef7a..3462ec86 100644
--- a/htmlSanityCheck-core/build.gradle
+++ b/htmlSanityCheck-core/build.gradle
@@ -19,7 +19,7 @@ dependencies {
apply plugin: 'groovy'
-task copyResourceImages(type: Copy) {
+tasks.register('copyResourceImages', Copy) {
from('src/main/resources') {
include '**/*.png'
}