Skip to content

fix gradle custom step with closure and configuration cache #3947

fix gradle custom step with closure and configuration cache

fix gradle custom step with closure and configuration cache #3947

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

499 tests run, 484 passed, 12 skipped, 3 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-14737976212601151252 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-14737976212601151252\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 670ms
Raw output
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in C:\Users\runneradmin\AppData\Local\Temp\junit-14737976212601151252 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-14737976212601151252\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 670ms

	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-2692265665143314004 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-2692265665143314004\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 270ms
Raw output
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in C:\Users\runneradmin\AppData\Local\Temp\junit-2692265665143314004 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-2692265665143314004\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 270ms

	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-7796060410765544272 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-7796060410765544272\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 165ms
Raw output
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in C:\Users\runneradmin\AppData\Local\Temp\junit-7796060410765544272 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-7796060410765544272\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 165ms

	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)