It looks Isolated Projects feature graduate experimental, soon and will promote as incubation stage.
gradle/gradle#38302
snyk gradle plugin (and cli) don't support configuration-cache/isolated-project feature, yet.
|
// Gradle 7 introduced configuration caching which we don't support yet |
|
// If it is enabled in a gradle.properties file, it can be disabled on the command line with --no-configuration-cache |
|
// It is enabled by default in Gradle 9. |
|
// The regex matches Gradle 7, 8, 9 and any future two-digit versions (10, 11, etc.). |
|
if (gradleVersion.match(/Gradle ([7-9]|\d{2,})/)) { |
|
args.push('--no-configuration-cache'); |
|
} |
By this block, snyk cli was failed on gradle project which is enabled Isolated Projects feature.
./gradlew
snykResolvedDepsJson -q --project-dir /some/where/projectDir -
Pconfiguration=.*([Dd]ebug|[Rr]elease)(Compile|Runtime)Classpath$ -
Dorg.gradle.parallel= -Dorg.gradle.console=plain -PonlySubProject=app -I
/tmp-585-FzuNOJ9t3n3t--init.gradle --no-configuration-cache
FAILURE: Build failed with an exception.
* What went wrong:
Configuration Cache cannot be disabled when Isolated Projects is enabled.
It is expected that this will make it difficult to use the Snyk CLI in large Gradle-based projects.
It looks
Isolated Projectsfeature graduateexperimental, soon and will promote as incubation stage.gradle/gradle#38302
snyk gradle plugin (and cli) don't support configuration-cache/isolated-project feature, yet.
snyk-gradle-plugin/lib/index.ts
Lines 704 to 710 in e404c21
By this block, snyk cli was failed on gradle project which is enabled
Isolated Projectsfeature.It is expected that this will make it difficult to use the Snyk CLI in large Gradle-based projects.