2 builds requesting download via gradle wrapper at the same time

(Eric Deandrea) #1

If I have 2 builds that both use the gradle wrapper and the distro has not yet been download, what will happen? Does gradle handle this edge case? Only 1 of the builds should do the download correct? Will the 2 downloads stomp over each other? What if 1 build is already in process of downloading the distro and the other build fires up? What happens?

(Peter Niederwieser) #2

In short, if both builds run under the same OS user, and no customizations have been made, both builds will download the distro, but only one will successfully install it. The other build will error out and use the distro installed by the former build next time it gets run.