One of my subprojects A dependsOn another subproject B. I had been using this line to declare a dependency, and things worked just fine.
I just moved to Gradle 3.3. And am now getting this error
Declaring custom 'build' task when using the standard Gradle lifecycle plugins is not allowed.
The general problem is: how do I make my custom tasks hook into the predefined tasks – specifically task build and task publish. There are lots of suggestions on various forums, but none of them work for me. The most promising seemed to be (inside subproject A)
I’ve also considered that perhaps I’m trying to improperly architect my build file. Option (1) task “build” should generically build all build-like things. Option (2) “build” is only for Java build, and I should create my own top-level task (say “myBuild” that depends on Java’s “build”.