New feature for Gradle 7, configuration caching, breaks snyk.
If a user passes --configuration-cache we will remove it, if it's set in gradle.properties we have to force switching it off by using --no-configuration-cache. This flag didn't exist before Gradle 7 so we need to check the version before adding it.
What this does
New feature for Gradle 7, configuration caching, breaks snyk. If a user passes
--configuration-cache
we will remove it, if it's set ingradle.properties
we have to force switching it off by using--no-configuration-cache
. This flag didn't exist before Gradle 7 so we need to check the version before adding it.