if you remove the `apply { plugin<WrapperPlugin...
# gradle
m
if you remove the
apply { plugin<WrapperPlugin>() }
then the following should probably work:
Copy code
task<Wrapper>("wrapper") {
  version = "3.0"
  distributionUrl = "<http://artifactory.local/artifactory/gradle-distributions/gradle-$gradleVersion-all.zip>"
}