I am using Selenium and Spock for testing my application. Running tests that need System properties from Maven or my IDE works like a charm, but Gradle is getting null values.
@Shared
private int waitTimeout = System.getProperty("waitTimeout", "10").toInteger()
@Shared
protected String apolloURL = System.getProperty("apolloURL")
Maybe I am doing something wrong?