If you try to reference a class in an init script without adding it to the classpath, that error will occur in any version of Gradle. The line you copied from the thread isn’t stand-alone. It’s within the context of the larger file posted by the original poster.
↧