DisconnectableInputStream source reader gradle 7.1.1 & 7.2

We are running “./gradlew build” from root directory of open source project https://github.com/deanhiller/webpieces

In gradle 6, this worked fine but after upgrading to 7.1.1 (or 7.2) and conversion to composite build as well, we now VERY frequently get this issue(9 times out of 10 on my computer)

421 actionable tasks: 421 executed
Exception in thread "DisconnectableInputStream source reader" org.gradle.api.UncheckedIOException: java.io.EOFException: No input provided for project
        at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:62)
        at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:41)
        at org.gradle.util.internal.DisconnectableInputStream$1.run(DisconnectableInputStream.java:127)
        at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.io.EOFException: No input provided for project
        at org.apache.tools.ant.Project.defaultInput(Project.java:1303)
        at org.apache.tools.ant.Project.demuxInput(Project.java:1325)
        at org.apache.tools.ant.DemuxInputStream.read(DemuxInputStream.java:73)
        at org.gradle.util.internal.DisconnectableInputStream$1.run(DisconnectableInputStream.java:98)
        ... 1 more

When the build fails, it is a very big red herring that junior devs start looking into until I tell them it’s a red herring.