From feaac904e8e01015c8aa267a9a049e94f9650470 Mon Sep 17 00:00:00 2001 From: Ned Twigg Date: Wed, 8 Jan 2025 13:26:06 -0800 Subject: [PATCH] Make sure we use a recent version of `gradleRunner` --- .../gradle/spotless/NpmTestsWithoutNpmInstallationTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin-gradle/src/test/java/com/diffplug/gradle/spotless/NpmTestsWithoutNpmInstallationTest.java b/plugin-gradle/src/test/java/com/diffplug/gradle/spotless/NpmTestsWithoutNpmInstallationTest.java index 1d782120de..6abbc108fa 100644 --- a/plugin-gradle/src/test/java/com/diffplug/gradle/spotless/NpmTestsWithoutNpmInstallationTest.java +++ b/plugin-gradle/src/test/java/com/diffplug/gradle/spotless/NpmTestsWithoutNpmInstallationTest.java @@ -182,7 +182,9 @@ void useNpmNextToConfiguredNodePluginFromNodeGradlePlugin() throws Exception { public void supportsConfigurationCache() throws Exception { setFile("build.gradle").toResource("com/diffplug/gradle/spotless/NpmTestsWithoutNpmInstallationTest_gradle_node_plugin_example_1.gradle"); setFile("test.ts").toResource("npm/prettier/config/typescript.dirty"); - final BuildResult spotlessApply = gradleRunner().withArguments("--stacktrace", "--configuration-cache", "spotlessApply").build(); + BuildResult spotlessApply = gradleRunner() + .withGradleVersion(GradleVersionSupport.STABLE_CONFIGURATION_CACHE.version) + .withArguments("--stacktrace", "--configuration-cache", "spotlessApply").build(); Assertions.assertThat(spotlessApply.getOutput()).contains("BUILD SUCCESSFUL"); assertFile("test.ts").sameAsResource("npm/prettier/config/typescript.configfile_prettier_2.clean"); }