Skip to content

fix gradle custom step with closure and configuration cache #3931

fix gradle custom step with closure and configuration cache

fix gradle custom step with closure and configuration cache #3931

Triggered via pull request January 2, 2025 17:49
Status Success
Total duration 6m 42s
Artifacts

codeql-analysis.yml

on: pull_request
Matrix: Analyze
Fit to window
Zoom out
Zoom in

Annotations

15 errors and 6 warnings
BumpThisNumberIfACustomStepChangesTest$WithConfigCache.customRuleNeverUpToDate(): BumpThisNumberIfACustomStepChangesTest$WithConfigCache#L1
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in /tmp/junit-7602178246617364505 with arguments [spotlessApply] Output: Calculating task graph as no cached configuration is available for tasks: spotlessApply > Task :spotlessInternalRegisterDependencies > Task :spotlessMisc FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':spotlessMisc'. > Cannot fingerprint input property 'stepsInternalEquality': value 'com.diffplug.spotless.ConfigurationCacheHackList@c3035eb6' cannot be serialized. * 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 531ms 2 actionable tasks: 2 executed Configuration cache entry stored.
BumpThisNumberIfACustomStepChangesTest$WithConfigCache.unlessBumpThisNumberIfACustomStepChanges(): BumpThisNumberIfACustomStepChangesTest$WithConfigCache#L1
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in /tmp/junit-835288440309905895 with arguments [spotlessApply] Output: Calculating task graph as no cached configuration is available for tasks: spotlessApply > Task :spotlessInternalRegisterDependencies > Task :spotlessMisc FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':spotlessMisc'. > Cannot fingerprint input property 'stepsInternalEquality': value 'com.diffplug.spotless.ConfigurationCacheHackList@a7d359f2' cannot be serialized. * 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 170ms 2 actionable tasks: 2 executed Configuration cache entry stored.
BumpThisNumberIfACustomStepChangesTest$WithConfigCache.andRunsAgainIfNumberChanges(): BumpThisNumberIfACustomStepChangesTest$WithConfigCache#L1
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in /tmp/junit-6297930806778350867 with arguments [spotlessApply] Output: Calculating task graph as no cached configuration is available for tasks: spotlessApply > Task :spotlessInternalRegisterDependencies > Task :spotlessMisc FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':spotlessMisc'. > Cannot fingerprint input property 'stepsInternalEquality': value 'com.diffplug.spotless.ConfigurationCacheHackList@a7d359f2' cannot be serialized. * 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 142ms 2 actionable tasks: 2 executed Configuration cache entry stored.
BumpThisNumberIfACustomStepChangesTest$WithConfigCache.customRuleNeverUpToDate(): BumpThisNumberIfACustomStepChangesTest$WithConfigCache#L1
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in /tmp/junit-1759360734599950328 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-1759360734599950328/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
BumpThisNumberIfACustomStepChangesTest$WithConfigCache.unlessBumpThisNumberIfACustomStepChanges(): BumpThisNumberIfACustomStepChangesTest$WithConfigCache#L1
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in /tmp/junit-1133785949800783946 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-1133785949800783946/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 138ms
BumpThisNumberIfACustomStepChangesTest$WithConfigCache.andRunsAgainIfNumberChanges(): BumpThisNumberIfACustomStepChangesTest$WithConfigCache#L1
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in /tmp/junit-17021895984681610994 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-17021895984681610994/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 81ms
BumpThisNumberIfACustomStepChangesTest$WithConfigCache.customRuleNeverUpToDate(): BumpThisNumberIfACustomStepChangesTest$WithConfigCache#L1
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in /tmp/junit-13950862483444596260 with arguments [spotlessApply] Output: Calculating task graph as no cached configuration is available for tasks: spotlessApply > Task :spotlessInternalRegisterDependencies > Task :spotlessMisc FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':spotlessMisc'. > Cannot fingerprint input property 'stepsInternalEquality': value 'com.diffplug.spotless.ConfigurationCacheHackList@ca38d553' cannot be serialized. * 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 520ms 2 actionable tasks: 2 executed Configuration cache entry stored.
BumpThisNumberIfACustomStepChangesTest$WithConfigCache.unlessBumpThisNumberIfACustomStepChanges(): BumpThisNumberIfACustomStepChangesTest$WithConfigCache#L1
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in /tmp/junit-13856724116850563582 with arguments [spotlessApply] Output: Calculating task graph as no cached configuration is available for tasks: spotlessApply > Task :spotlessInternalRegisterDependencies > Task :spotlessMisc FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':spotlessMisc'. > Cannot fingerprint input property 'stepsInternalEquality': value 'com.diffplug.spotless.ConfigurationCacheHackList@a7d359f2' cannot be serialized. * 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 106ms 2 actionable tasks: 2 executed Configuration cache entry stored.
BumpThisNumberIfACustomStepChangesTest$WithConfigCache.andRunsAgainIfNumberChanges(): BumpThisNumberIfACustomStepChangesTest$WithConfigCache#L1
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in /tmp/junit-7862896137574866959 with arguments [spotlessApply] Output: Calculating task graph as no cached configuration is available for tasks: spotlessApply > Task :spotlessInternalRegisterDependencies > Task :spotlessMisc FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':spotlessMisc'. > Cannot fingerprint input property 'stepsInternalEquality': value 'com.diffplug.spotless.ConfigurationCacheHackList@a7d359f2' cannot be serialized. * 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 98ms 2 actionable tasks: 2 executed Configuration cache entry stored.
BumpThisNumberIfACustomStepChangesTest$WithConfigCache.customRuleNeverUpToDate(): BumpThisNumberIfACustomStepChangesTest$WithConfigCache#L1
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in /tmp/junit-11882148826185585296 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-11882148826185585296/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 231ms
BumpThisNumberIfACustomStepChangesTest$WithConfigCache.unlessBumpThisNumberIfACustomStepChanges(): BumpThisNumberIfACustomStepChangesTest$WithConfigCache#L1
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in /tmp/junit-12831466462441865957 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-12831466462441865957/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 110ms
BumpThisNumberIfACustomStepChangesTest$WithConfigCache.andRunsAgainIfNumberChanges(): BumpThisNumberIfACustomStepChangesTest$WithConfigCache#L1
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in /tmp/junit-13483232849682118863 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-13483232849682118863/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 50ms
BumpThisNumberIfACustomStepChangesTest$WithConfigCache.customRuleNeverUpToDate(): plugin-gradle\build\classes\java\test\com\diffplug\gradle\spotless\BumpThisNumberIfACustomStepChangesTest$WithConfigCache.class#L1
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in C:\Users\runneradmin\AppData\Local\Temp\junit-16820762031696117097 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-16820762031696117097\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 1s
BumpThisNumberIfACustomStepChangesTest$WithConfigCache.unlessBumpThisNumberIfACustomStepChanges(): plugin-gradle\build\classes\java\test\com\diffplug\gradle\spotless\BumpThisNumberIfACustomStepChangesTest$WithConfigCache.class#L1
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in C:\Users\runneradmin\AppData\Local\Temp\junit-1012679682020434805 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-1012679682020434805\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 287ms
BumpThisNumberIfACustomStepChangesTest$WithConfigCache.andRunsAgainIfNumberChanges(): plugin-gradle\build\classes\java\test\com\diffplug\gradle\spotless\BumpThisNumberIfACustomStepChangesTest$WithConfigCache.class#L1
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in C:\Users\runneradmin\AppData\Local\Temp\junit-11521914522325967697 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-11521914522325967697\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 223ms
Analyze (javascript)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Analyze (javascript)
1 issue was detected with this workflow: git checkout HEAD^2 is no longer necessary. Please remove this step as Code Scanning recommends analyzing the merge commit for best results.
Analyze (javascript)
Unable to validate code scanning workflow: CheckoutWrongHead
Analyze (java)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Analyze (java)
1 issue was detected with this workflow: git checkout HEAD^2 is no longer necessary. Please remove this step as Code Scanning recommends analyzing the merge commit for best results.
Analyze (java)
Unable to validate code scanning workflow: CheckoutWrongHead