Skip to content

Commit

Permalink
Make sure we use a recent version of gradleRunner
Browse files Browse the repository at this point in the history
  • Loading branch information
nedtwigg committed Jan 8, 2025
1 parent 6e2b093 commit feaac90
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit feaac90

Please sign in to comment.