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 11 ubuntu-latest failed Jan 6, 2025 in 0s

497 tests run, 484 passed, 10 skipped, 3 failed.

Annotations

Check failure on line 1 in BumpThisNumberIfACustomStepChangesTest$WithConfigCache

See this annotation in the file changed.

@github-actions github-actions / JUnit gradle 11 ubuntu-latest

BumpThisNumberIfACustomStepChangesTest$WithConfigCache.customRuleNeverUpToDate()

org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in /tmp/junit-6340261504613731996 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 '/tmp/junit-6340261504613731996/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 6.6

* 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 4s
Raw output
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in /tmp/junit-6340261504613731996 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 '/tmp/junit-6340261504613731996/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 6.6

* 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 4s

	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:566)
	at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1541)
	at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1541)

Check failure on line 1 in BumpThisNumberIfACustomStepChangesTest$WithConfigCache

See this annotation in the file changed.

@github-actions github-actions / JUnit gradle 11 ubuntu-latest

BumpThisNumberIfACustomStepChangesTest$WithConfigCache.unlessBumpThisNumberIfACustomStepChanges()

org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in /tmp/junit-8896097184999514162 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 '/tmp/junit-8896097184999514162/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 6.6

* 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 136ms
Raw output
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in /tmp/junit-8896097184999514162 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 '/tmp/junit-8896097184999514162/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 6.6

* 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 136ms

	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:566)
	at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1541)
	at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1541)

Check failure on line 1 in BumpThisNumberIfACustomStepChangesTest$WithConfigCache

See this annotation in the file changed.

@github-actions github-actions / JUnit gradle 11 ubuntu-latest

BumpThisNumberIfACustomStepChangesTest$WithConfigCache.andRunsAgainIfNumberChanges()

org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in /tmp/junit-10455545853328841157 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 '/tmp/junit-10455545853328841157/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 6.6

* 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 86ms
Raw output
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in /tmp/junit-10455545853328841157 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 '/tmp/junit-10455545853328841157/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 6.6

* 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 86ms

	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:566)
	at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1541)
	at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1541)