migrate build.gradle legacy task registration to recommended approach using tasks.register
build.gradle
tasks.register