I have a project where I configured test task:
executable ‘C:/Program Files/Java/jdk1.6.0_43/bin/javaw.exe’ }
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.