Gradle test task doesn't use configuration values

(sergey.morenets) #1


I have a project where I configured test task:

test {

jvmArgs ‘’

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 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.

(Luke Daley) #2

How does it fail? Do you get a stacktrace? An error message?

(sergey.morenets) #3

Yes, this is continuation of

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

Is it possible to configure that? Or run tests by one gradle worker so that no connections are needed.

(Luke Daley) #4

I’m going to respond on the other thread. There’s no reason to use two forum threads.