Skip to content

Commit feaac90

Browse files
committed
Make sure we use a recent version of gradleRunner
1 parent 6e2b093 commit feaac90

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plugin-gradle/src/test/java/com/diffplug/gradle/spotless/NpmTestsWithoutNpmInstallationTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,9 @@ void useNpmNextToConfiguredNodePluginFromNodeGradlePlugin() throws Exception {
182182
public void supportsConfigurationCache() throws Exception {
183183
setFile("build.gradle").toResource("com/diffplug/gradle/spotless/NpmTestsWithoutNpmInstallationTest_gradle_node_plugin_example_1.gradle");
184184
setFile("test.ts").toResource("npm/prettier/config/typescript.dirty");
185-
final BuildResult spotlessApply = gradleRunner().withArguments("--stacktrace", "--configuration-cache", "spotlessApply").build();
185+
BuildResult spotlessApply = gradleRunner()
186+
.withGradleVersion(GradleVersionSupport.STABLE_CONFIGURATION_CACHE.version)
187+
.withArguments("--stacktrace", "--configuration-cache", "spotlessApply").build();
186188
Assertions.assertThat(spotlessApply.getOutput()).contains("BUILD SUCCESSFUL");
187189
assertFile("test.ts").sameAsResource("npm/prettier/config/typescript.configfile_prettier_2.clean");
188190
}

0 commit comments

Comments
 (0)