Hello,
I encounter the same problem. I was trying to use the fatjar plugin (https://github.com/musketyr/gradle-fatjar-plugin) and, at first, I copy/pasted the instructions in a separate common.gradle file which I ‘apply(from: “common.gradle”);’ in build.gradle.
It failed to work until I moved the instructions into build.gradle itself…