When I run test task I suppose Gradle will use Java 6 to run the tests(and also use IPv4 protocol).
gradle -Djava.net.preferIPv4Stack=true test
However I see in my firewall that Gradle opens(or tries to open) 6 TCP connections. Five of them are TCPv4 opened by javaw.exe. And one is java.exe(which is Java 7) and TCPv6.
TCPv6 somehow doesn’t work with Gradle so overall tests failed.
I am trying to configure Gradle so that it uses IPv4 for all connections while testing. I almost did it. Five connections use IPv4. However one connection still uses IPv6. Although I setup everywhere -Djava.net.preferIPv4Stack=true
Is it possible to configure that? Or run tests by one gradle worker so that no connections are needed.