Skip to content

fix gradle custom step with closure and configuration cache #2008

fix gradle custom step with closure and configuration cache

fix gradle custom step with closure and configuration cache #2008

GitHub Actions / JUnit gradle 17 windows-latest failed Jan 6, 2025 in 0s

499 tests run, 483 passed, 12 skipped, 4 failed.

Annotations

Check failure on line 1 in plugin-gradle\build\classes\java\test\com\diffplug\gradle\spotless\BumpThisNumberIfACustomStepChangesTest$WithConfigCache.class

See this annotation in the file changed.

@github-actions github-actions / JUnit gradle 17 windows-latest

BumpThisNumberIfACustomStepChangesTest$WithConfigCache.customRuleNeverUpToDate()

org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in C:\Users\runneradmin\AppData\Local\Temp\junit-9449886767209938009 with arguments [spotlessApply]

Output:
Configuration cache is an incubating feature.
Calculating task graph as no configuration cache is available for tasks: spotlessApply

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\runneradmin\AppData\Local\Temp\junit-9449886767209938009\build.gradle' line: 7

* What went wrong:
Could not determine the dependencies of task ':spotlessApply'.
> Could not create task ':spotlessMiscApply'.
   > Could not create task ':spotlessMisc'.
      > The 'custom' method is only available if you are using Gradle 8.0 or newer, this is 7.3

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 579ms
Raw output
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in C:\Users\runneradmin\AppData\Local\Temp\junit-9449886767209938009 with arguments [spotlessApply]

Output:
Configuration cache is an incubating feature.
Calculating task graph as no configuration cache is available for tasks: spotlessApply

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\runneradmin\AppData\Local\Temp\junit-9449886767209938009\build.gradle' line: 7

* What went wrong:
Could not determine the dependencies of task ':spotlessApply'.
> Could not create task ':spotlessMiscApply'.
   > Could not create task ':spotlessMisc'.
      > The 'custom' method is only available if you are using Gradle 8.0 or newer, this is 7.3

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 579ms

	at app//org.gradle.testkit.runner.internal.DefaultGradleRunner.lambda$build$2(DefaultGradleRunner.java:274)
	at app//org.gradle.testkit.runner.internal.DefaultGradleRunner.run(DefaultGradleRunner.java:367)
	at app//org.gradle.testkit.runner.internal.DefaultGradleRunner.build(DefaultGradleRunner.java:272)
	at app//com.diffplug.gradle.spotless.GradleIntegrationHarness.taskIsUpToDate(GradleIntegrationHarness.java:208)
	at app//com.diffplug.gradle.spotless.GradleIntegrationHarness.applyIsUpToDate(GradleIntegrationHarness.java:193)
	at app//com.diffplug.gradle.spotless.BumpThisNumberIfACustomStepChangesTest.applyIsUpToDate(BumpThisNumberIfACustomStepChangesTest.java:73)
	at app//com.diffplug.gradle.spotless.BumpThisNumberIfACustomStepChangesTest.customRuleNeverUpToDate(BumpThisNumberIfACustomStepChangesTest.java:81)
	at [email protected]/java.lang.reflect.Method.invoke(Method.java:569)
	at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1511)
	at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1511)

Check failure on line 1 in plugin-gradle\build\classes\java\test\com\diffplug\gradle\spotless\BumpThisNumberIfACustomStepChangesTest$WithConfigCache.class

See this annotation in the file changed.

@github-actions github-actions / JUnit gradle 17 windows-latest

BumpThisNumberIfACustomStepChangesTest$WithConfigCache.unlessBumpThisNumberIfACustomStepChanges()

org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in C:\Users\runneradmin\AppData\Local\Temp\junit-5947511996411529897 with arguments [spotlessApply]

Output:
Configuration cache is an incubating feature.
Calculating task graph as no configuration cache is available for tasks: spotlessApply

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\runneradmin\AppData\Local\Temp\junit-5947511996411529897\build.gradle' line: 7

* What went wrong:
Could not determine the dependencies of task ':spotlessApply'.
> Could not create task ':spotlessMiscApply'.
   > Could not create task ':spotlessMisc'.
      > The 'custom' method is only available if you are using Gradle 8.0 or newer, this is 7.3

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 468ms
Raw output
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in C:\Users\runneradmin\AppData\Local\Temp\junit-5947511996411529897 with arguments [spotlessApply]

Output:
Configuration cache is an incubating feature.
Calculating task graph as no configuration cache is available for tasks: spotlessApply

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\runneradmin\AppData\Local\Temp\junit-5947511996411529897\build.gradle' line: 7

* What went wrong:
Could not determine the dependencies of task ':spotlessApply'.
> Could not create task ':spotlessMiscApply'.
   > Could not create task ':spotlessMisc'.
      > The 'custom' method is only available if you are using Gradle 8.0 or newer, this is 7.3

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 468ms

	at app//org.gradle.testkit.runner.internal.DefaultGradleRunner.lambda$build$2(DefaultGradleRunner.java:274)
	at app//org.gradle.testkit.runner.internal.DefaultGradleRunner.run(DefaultGradleRunner.java:367)
	at app//org.gradle.testkit.runner.internal.DefaultGradleRunner.build(DefaultGradleRunner.java:272)
	at app//com.diffplug.gradle.spotless.GradleIntegrationHarness.taskIsUpToDate(GradleIntegrationHarness.java:208)
	at app//com.diffplug.gradle.spotless.GradleIntegrationHarness.applyIsUpToDate(GradleIntegrationHarness.java:193)
	at app//com.diffplug.gradle.spotless.BumpThisNumberIfACustomStepChangesTest.applyIsUpToDate(BumpThisNumberIfACustomStepChangesTest.java:73)
	at app//com.diffplug.gradle.spotless.BumpThisNumberIfACustomStepChangesTest.unlessBumpThisNumberIfACustomStepChanges(BumpThisNumberIfACustomStepChangesTest.java:95)
	at [email protected]/java.lang.reflect.Method.invoke(Method.java:569)
	at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1511)
	at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1511)

Check failure on line 1 in plugin-gradle\build\classes\java\test\com\diffplug\gradle\spotless\BumpThisNumberIfACustomStepChangesTest$WithConfigCache.class

See this annotation in the file changed.

@github-actions github-actions / JUnit gradle 17 windows-latest

BumpThisNumberIfACustomStepChangesTest$WithConfigCache.andRunsAgainIfNumberChanges()

org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in C:\Users\runneradmin\AppData\Local\Temp\junit-8643410187683208867 with arguments [spotlessApply]

Output:
Configuration cache is an incubating feature.
Calculating task graph as no configuration cache is available for tasks: spotlessApply

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\runneradmin\AppData\Local\Temp\junit-8643410187683208867\build.gradle' line: 7

* What went wrong:
Could not determine the dependencies of task ':spotlessApply'.
> Could not create task ':spotlessMiscApply'.
   > Could not create task ':spotlessMisc'.
      > The 'custom' method is only available if you are using Gradle 8.0 or newer, this is 7.3

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 169ms
Raw output
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in C:\Users\runneradmin\AppData\Local\Temp\junit-8643410187683208867 with arguments [spotlessApply]

Output:
Configuration cache is an incubating feature.
Calculating task graph as no configuration cache is available for tasks: spotlessApply

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\runneradmin\AppData\Local\Temp\junit-8643410187683208867\build.gradle' line: 7

* What went wrong:
Could not determine the dependencies of task ':spotlessApply'.
> Could not create task ':spotlessMiscApply'.
   > Could not create task ':spotlessMisc'.
      > The 'custom' method is only available if you are using Gradle 8.0 or newer, this is 7.3

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 169ms

	at app//org.gradle.testkit.runner.internal.DefaultGradleRunner.lambda$build$2(DefaultGradleRunner.java:274)
	at app//org.gradle.testkit.runner.internal.DefaultGradleRunner.run(DefaultGradleRunner.java:367)
	at app//org.gradle.testkit.runner.internal.DefaultGradleRunner.build(DefaultGradleRunner.java:272)
	at app//com.diffplug.gradle.spotless.GradleIntegrationHarness.taskIsUpToDate(GradleIntegrationHarness.java:208)
	at app//com.diffplug.gradle.spotless.GradleIntegrationHarness.applyIsUpToDate(GradleIntegrationHarness.java:193)
	at app//com.diffplug.gradle.spotless.BumpThisNumberIfACustomStepChangesTest.applyIsUpToDate(BumpThisNumberIfACustomStepChangesTest.java:73)
	at app//com.diffplug.gradle.spotless.BumpThisNumberIfACustomStepChangesTest.andRunsAgainIfNumberChanges(BumpThisNumberIfACustomStepChangesTest.java:110)
	at [email protected]/java.lang.reflect.Method.invoke(Method.java:569)
	at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1511)
	at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1511)

Check failure on line 46 in testlib\build\classes\java\test\com\diffplug\spotless\combined\CombinedJavaFormatStepTest.class

See this annotation in the file changed.

@github-actions github-actions / JUnit gradle 17 windows-latest

CombinedJavaFormatStepTest.checkIssue1679()

org.opentest4j.AssertionFailedError: 
expected: com.diffplug.spotless.Formatter@3fd1cbe5
 but was: com.diffplug.spotless.Formatter@9c4f73e1
Raw output
org.opentest4j.AssertionFailedError: 
expected: com.diffplug.spotless.Formatter@3fd1cbe5
 but was: com.diffplug.spotless.Formatter@9c4f73e1
	at app//com.diffplug.spotless.StepHarnessBase.<init>(StepHarnessBase.java:36)
	at app//com.diffplug.spotless.StepHarness.<init>(StepHarness.java:30)
	at app//com.diffplug.spotless.StepHarness.forFormatter(StepHarness.java:49)
	at app//com.diffplug.spotless.StepHarness.forSteps(StepHarness.java:40)
	at app//com.diffplug.spotless.combined.CombinedJavaFormatStepTest.checkIssue1679(CombinedJavaFormatStepTest.java:46)
	at [email protected]/java.lang.reflect.Method.invoke(Method.java:569)
	at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1511)
	at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1511)