Gradle documentation example does not work in 7.1.1 ->

I downloaded the groovy example here →

and run the ./gradlew build and it fails with

- Plugin Repositories (could not resolve plugin artifact 'org.sample.greeting:org.sample.greeting.gradle.plugin:1.0-SNAPSHOT')
  Searched in the following repositories:
    Gradle Central Plugin Repository

It should not be trying to find the plugin remotely since the example was for building and using a plugin.

Also, this code is a bit buggy as it does not bring in transitive includeBuilds so not all jars are plublished for my plugin locally like I would desire

tasks.register('publishDeps') {
    dependsOn gradle.includedBuilds*.task(':publishMavenJavaPublicationToWebpiecesLocal2Repository')

I wonder if there has been advances here to make this better or a way to include transitive ‘includeBuild’ deps from the settings.gradle file (would be nice for intellij as well since intellij missed bringing in transitive deps as well into the source to be modifiable)

never mind. close this. Oddly enough, the includeBuild line was not in settings.gradle and they did it on the command line. I have no idea why. I can now do “./gradlew greeting” and it works.