FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Projects\someProject\build.gradle' line: 19
* What went wrong:
A problem occurred evaluating project ':someProject'.
> Could not find property 'generatePomFileForMavenJavaPublication' on project ':someProject'.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 7.691 secs
The previous command worked with Gradle 1.8, and does not work with 1.10 (did not try 1.9 yet).
“The simplest way to ensure that the publishing plugin is configured when you attempt to access the GenerateMavenPom task is to place the access inside a publishing block, as the above example demonstrates”
The “above example” no longer uses a publishing block, so the section needs to be updated.