Disabling File Watching does not work

Running a Gradle 8.11 build on: Windows 10 version 22H2 OS Build 19045.5131 (via Gitlab v17.4.0)

Gradle outputs the following in the log:

BUILD SUCCESSFUL in 32m 2s
34 actionable tasks: 31 executed, 3 up-to-date
Watched directory hierarchies: [C:\ia\Demo]
Cleaning up project directory and file based variables
00:01
Job succeeded

Watched directory hierarchies is adding 90 mins to the build after BUILD SUCCESSFUL

When I specify option --no-watch-fs on command line to disable File watching, I don’t get the message in the log:

-------------------------------------------------------------
Watched directory hierarchies: [C:\ia\Demo]
-------------------------------------------------------------

–no-watch-fs does not seem to disable the file watching and still adds aprrox 90 mins to my build after BUILD SUCCESSFUL!!

(I have also tried with adding: org.gradle.vfs.watch=false in gradle.properties - does not work).

Maybe it is not actually the file-watching that adds the 90 minutes?
If you only used org.gradle.vfs.watch=false it could still be in the user-specific Gradle properties set to true, but when using the --no-watch-fs this should win and disable the file-watching.
Besides that it sounds pretty ridiculous that the file-watching adds 90 minutes.
If that is really the case, maybe you should report a bug.
But maybe you should try to enable --info or --debug to see what is actually happening and whether it might be something else that is happening, or maybe a build --scan could help if you can use it, but I’m not sure whether that would capture it if is happening after the BUILD SUCCESSFUL.
Maybe also the GitHub - gradle/gradle-profiler: A tool for gathering profiling and benchmarking information for Gradle builds could help to gather some insight. :man_shrugging: