The optimazation within build.gradle to create a /usr/share/gradle.home directory does not fully work.
At each time the file
Propose to remove all this code alltogether and substitute it with a more docker-ish approach:
Generate a clean container with the toolchain. Start it running ./gradlew within. Commit it as bigtop/slaves:trunk-os
A local prototype looked very promising and decreased startup time.