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

Triggered via pull request January 6, 2025 07:34
Status Success
Total duration 6m 50s
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-11506098872614781018 with arguments [spotlessApply] Output: Calculating task graph as no cached configuration is available for tasks: spotlessApply FAILURE: Build failed with an exception. * What went wrong: Could not load the value of field `stepsInternalEquality` of task `:spotlessMisc` of type `com.diffplug.gradle.spotless.SpotlessTaskImpl`. > java.lang.ClassNotFoundException: build_c5qb51w7y8znkoa4fukvro8jp$_run_closure1$_closure2$_closure3 * 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 599ms Configuration cache entry stored.
BumpThisNumberIfACustomStepChangesTest$WithConfigCache.unlessBumpThisNumberIfACustomStepChanges(): BumpThisNumberIfACustomStepChangesTest$WithConfigCache#L1
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in /tmp/junit-1335235316589106374 with arguments [spotlessApply] Output: Calculating task graph as no cached configuration is available for tasks: spotlessApply FAILURE: Build failed with an exception. * What went wrong: Could not load the value of field `stepsInternalEquality` of task `:spotlessMisc` of type `com.diffplug.gradle.spotless.SpotlessTaskImpl`. > java.lang.ClassNotFoundException: build_7sjkl8co7zkpgew7780udtrl5$_run_closure1$_closure2$_closure3 * 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 157ms Configuration cache entry stored.
BumpThisNumberIfACustomStepChangesTest$WithConfigCache.andRunsAgainIfNumberChanges(): BumpThisNumberIfACustomStepChangesTest$WithConfigCache#L1
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in /tmp/junit-6634199116168859893 with arguments [spotlessApply] Output: Calculating task graph as no cached configuration is available for tasks: spotlessApply FAILURE: Build failed with an exception. * What went wrong: Could not load the value of field `stepsInternalEquality` of task `:spotlessMisc` of type `com.diffplug.gradle.spotless.SpotlessTaskImpl`. > java.lang.ClassNotFoundException: build_6kydasj8o3gcxysv5fdwjrgd0$_run_closure1$_closure2$_closure3 * 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 141ms Configuration cache entry stored.
BumpThisNumberIfACustomStepChangesTest$WithConfigCache.customRuleNeverUpToDate(): BumpThisNumberIfACustomStepChangesTest$WithConfigCache#L1
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in /tmp/junit-6815329610656901202 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-6815329610656901202/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 225ms
BumpThisNumberIfACustomStepChangesTest$WithConfigCache.unlessBumpThisNumberIfACustomStepChanges(): BumpThisNumberIfACustomStepChangesTest$WithConfigCache#L1
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in /tmp/junit-8031194499359112534 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-8031194499359112534/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 81ms
BumpThisNumberIfACustomStepChangesTest$WithConfigCache.andRunsAgainIfNumberChanges(): BumpThisNumberIfACustomStepChangesTest$WithConfigCache#L1
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in /tmp/junit-10561368823178519760 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-10561368823178519760/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 48ms
BumpThisNumberIfACustomStepChangesTest$WithConfigCache.customRuleNeverUpToDate(): BumpThisNumberIfACustomStepChangesTest$WithConfigCache#L1
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
BumpThisNumberIfACustomStepChangesTest$WithConfigCache.unlessBumpThisNumberIfACustomStepChanges(): BumpThisNumberIfACustomStepChangesTest$WithConfigCache#L1
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
BumpThisNumberIfACustomStepChangesTest$WithConfigCache.andRunsAgainIfNumberChanges(): BumpThisNumberIfACustomStepChangesTest$WithConfigCache#L1
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
BumpThisNumberIfACustomStepChangesTest$WithConfigCache.customRuleNeverUpToDate(): BumpThisNumberIfACustomStepChangesTest$WithConfigCache#L1
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in /tmp/junit-9758998930352144143 with arguments [spotlessApply] Output: Calculating task graph as no cached configuration is available for tasks: spotlessApply FAILURE: Build failed with an exception. * What went wrong: Could not load the value of field `stepsInternalEquality` of task `:spotlessMisc` of type `com.diffplug.gradle.spotless.SpotlessTaskImpl`. > java.lang.reflect.InvocationTargetException (no error message) * 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 548ms Configuration cache entry stored.
BumpThisNumberIfACustomStepChangesTest$WithConfigCache.unlessBumpThisNumberIfACustomStepChanges(): BumpThisNumberIfACustomStepChangesTest$WithConfigCache#L1
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in /tmp/junit-15898616372165098026 with arguments [spotlessApply] Output: Calculating task graph as no cached configuration is available for tasks: spotlessApply FAILURE: Build failed with an exception. * What went wrong: Could not load the value of field `stepsInternalEquality` of task `:spotlessMisc` of type `com.diffplug.gradle.spotless.SpotlessTaskImpl`. > java.lang.reflect.InvocationTargetException (no error message) * 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 99ms Configuration cache entry stored.
BumpThisNumberIfACustomStepChangesTest$WithConfigCache.andRunsAgainIfNumberChanges(): BumpThisNumberIfACustomStepChangesTest$WithConfigCache#L1
org.gradle.testkit.runner.UnexpectedBuildFailure: Unexpected build execution failure in /tmp/junit-741207380017655517 with arguments [spotlessApply] Output: Calculating task graph as no cached configuration is available for tasks: spotlessApply FAILURE: Build failed with an exception. * What went wrong: Could not load the value of field `stepsInternalEquality` of task `:spotlessMisc` of type `com.diffplug.gradle.spotless.SpotlessTaskImpl`. > java.lang.reflect.InvocationTargetException (no error message) * 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 87ms Configuration cache entry stored.
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-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
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-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
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-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
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