I want to use distributionUrl pointing to "ALL" for local builds, but "BIN" for CI builds.
Let's say I run Gradle Wrapper locally like this:
./gradlew test
And my gradle-wrapper.properties
file (which is checked-in to VCS) points to "ALL" distribution:
distributionUrl=https\://services.gradle.org/distributions/gradle-5.2.1-all.zip
Is there a parameter I can pass to ./gradlew test
to change distribution-type to BIN?
--gradle-distribution-url
might be helfpul. However it's used when wrapper is generated. Have a look here. It seems that you need to regenerate gradle wrapper on CI and then use it. – Aglow