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
Since Gradle is working strongly towards its configuration cache, the io.openliberty.tools.gradle.Liberty Plugin should support it as well.
Issue
When the org.gradle.configuration-cache Gradle property is enabled, tasks provided by the plugin, such as libertyStop and libertyDev fail with the following error message:
Task `:libertyDev` of type `io.openliberty.tools.gradle.tasks.DevTask`: invocation of 'Task.project' at execution time is unsupported.
Versions used
Gradle 8.11.1
Open Liberty Gradle Tools 3.9.1
Here is the full error message
08:45:07: Executing 'libertyDev'…
Calculating task graph as no cached configuration is available for tasks: libertyDev
> Task :libertyDev FAILED
[Incubating] Problems report is available at: file:///home/my_user/workspace/open-liberty-test/build/reports/problems/problems-report.html
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':libertyDev'.
> Could not get unknown property 'liberty' for root project 'open-liberty-test' of type org.gradle.api.Project.
* 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.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
Configuration cache problems found in this build.
1 problem was found storing the configuration cache.
- Task `:libertyDev` of type `io.openliberty.tools.gradle.tasks.DevTask`: invocation of 'Task.project' at execution time is unsupported.
See https://docs.gradle.org/8.11.1/userguide/configuration_cache.html#config_cache:requirements:use_project_during_execution
See the complete report at file:///home/my_user/workspace/open-liberty-test/build/reports/configuration-cache/cqtvlhct0pddw26hh6a2ntcyy/5gu9nyybhjaeql176gp7pgak/configuration-cache-report.html
> Invocation of 'Task.project' by task ':libertyDev' at execution time is unsupported.
* 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 296ms
10 actionable tasks: 1 executed, 9 up-to-date
Configuration cache entry discarded with 1 problem.
08:45:08: Execution finished 'libertyDev'.
The text was updated successfully, but these errors were encountered:
Since Gradle is working strongly towards its configuration cache, the
io.openliberty.tools.gradle.Liberty
Plugin should support it as well.Issue
When the
org.gradle.configuration-cache
Gradle property is enabled, tasks provided by the plugin, such aslibertyStop
andlibertyDev
fail with the following error message:Versions used
Gradle 8.11.1
Open Liberty Gradle Tools 3.9.1
Here is the full error message
The text was updated successfully, but these errors were encountered: