Build services are not shared between included bui...
# community-support
r
Build services are not shared between included builds and every included build creates a new instance right? I'm trying to use
gradle-profiler --profiler heap-dump
on a project that has a couple of included builds and I'm getting a heap dump for (no. of included builds + 1), and new
hprof
is slightly smaller than the one before that. Since heap dumping happens in the
close()
method of a
BuildService
that implements
AutoClosable
that would explain. Would it make sense to only install the service if
gradle.parent == null
?
Or name the files after the name of the included builds?