Update documentation example for newer Gradle versions.

Comment From: sullrich84

Sorry for the confusion.

My understanding is that by default, Gradle creates tasks lazily. The processResources only becomes eagerly created when dependsOn will be added to the task.

I faced a the warning 'org.gradle.language.jvm.tasks.ProcessResources' is declared in unstable package 'org.gradle.language.jvm.tasks' marked with @Incubating in a project I kicked off from start. However the pinned Gradle version in start is still 7.6.1.