You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If an included composite build is used as a plugin in root build, running <includedBuildTaskName> --rerun fails with
Cannot call TaskOutputs.upToDateWhen(Spec) on task ':build-logic:compileJava' after task has started execution.
See the reproducer below.
Expected Behavior
No failure.
Context (optional)
In short, --rerun configures the tasks in root project configuration phase, but because we requires the included build-logic as plugin, :build-logic:compileJava tasks finishes before the root project configuration phase - so we're trying to configure a task that already finishes execution.
$ ./gradlew build-logic:compileJava --rerun
FAILURE: Build failed with an exception.
* What went wrong:
Cannot call TaskOutputs.upToDateWhen(Spec) on task ':build-logic:compileJava' after task has started execution.
* 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 384ms
5 actionable tasks: 1 executed, 4 up-to-date
Gradle version
8.8
Build scan URL (optional)
No response
Your Environment (optional)
No response
The text was updated successfully, but these errors were encountered:
Current Behavior
If an included composite build is used as a plugin in root build, running
<includedBuildTaskName> --rerun
fails withSee the reproducer below.
Expected Behavior
No failure.
Context (optional)
In short,
--rerun
configures the tasks in root project configuration phase, but because we requires the includedbuild-logic
as plugin,:build-logic:compileJava
tasks finishes before the root project configuration phase - so we're trying to configure a task that already finishes execution.Steps to Reproduce
issue-4163.zip
Gradle version
8.8
Build scan URL (optional)
No response
Your Environment (optional)
No response
The text was updated successfully, but these errors were encountered: