diff --git a/plugin-gradle/src/test/java/com/diffplug/gradle/spotless/NativeCmdIntegrationTest.java b/plugin-gradle/src/test/java/com/diffplug/gradle/spotless/NativeCmdIntegrationTest.java index fa08d3b5f0..418bded954 100644 --- a/plugin-gradle/src/test/java/com/diffplug/gradle/spotless/NativeCmdIntegrationTest.java +++ b/plugin-gradle/src/test/java/com/diffplug/gradle/spotless/NativeCmdIntegrationTest.java @@ -52,7 +52,7 @@ class NativeCmdWithConfigCacheTest extends GradleIntegrationHarness implements N @Override public GradleRunner gradleRunner() throws IOException { setFile("gradle.properties").toContent("org.gradle.unsafe.configuration-cache=true"); - setFile("settings.gradle").toContent("enableFeaturePreview(\"STABLE_CONFIGURATION_CACHE\")"); + setFile("gradle.properties").toContent("org.gradle.configuration-cache=true"); return super.gradleRunner().withGradleVersion(GradleVersionSupport.CONFIGURATION_CACHE.version); } }