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
Then we run it checking all the warnings: ./gradlew :myTask --warning-mode=all --stacktrace
We get the following warning:
Build service 'com.avast.gradle.dockercompose.ServiceInfoCache :myTask' is being used by task ':composeDown' without the corresponding declaration via 'Task#usesService'. This behavior has been deprecated. This will fail with an error in Gradle 9.0. Declare the association between the task and the build service using 'Task#usesService'. Consult the upgrading guide for further information: [Upgrading your build from Gradle 7.x to 8.0](https://docs.gradle.org/8.5/userguide/upgrading_version_7.html#undeclared_build_service_usage)
Basically this happens with:
composeDown because of ServiceInfoCache
composeUp because of ComposeExecutor
Following this guide we fixed this issue by declaring the association between the task and the service.
It would be ideal if this happened directly in the docker-compose library. So basically the solution would be to associate the task with the service right after the BuildService is registered.
Thank you in advance!
The text was updated successfully, but these errors were encountered:
Hello, thank you for your report! Which Gradle version are you using, please? I'm on Gradle 8.5 on Windows and cannot reproduce these deprecation warnings, so it would be hard to me to fix this right now 😢
Hello Augi, thank you for taking a look at this. And sorry for the lack of context. Basically, I am running on Gradle 8.5 in MacOS. More details in the prompt:
./gradlew --version
------------------------------------------------------------
Gradle 8.5
------------------------------------------------------------
Build time: 2023-11-29 14:08:57 UTC
Revision: 28aca86a7180baa17117e0e5ba01d8ea9feca598
Kotlin: 1.9.20
Groovy: 3.0.17
Ant: Apache Ant(TM) version 1.10.13 compiled on January 4 2023
JVM: 21.0.1 (Eclipse Adoptium 21.0.1+12-LTS)
OS: Mac OS X 13.5 aarch64
Hello, no problem, your report was perfect, and allowed me to fix the issue. Please check the latest version of the plugin, you shouldn't see this warning anymore.
Hello all 👋
When running any tasks in Gradle which refer either to
composeUp
orcomposeDown
we are getting a deprecation error.How to reproduce?
I configure my task like:
Then we run it checking all the warnings:
./gradlew :myTask --warning-mode=all --stacktrace
We get the following warning:
Basically this happens with:
composeDown
because ofServiceInfoCache
composeUp
because ofComposeExecutor
Following this guide we fixed this issue by declaring the association between the task and the service.
This is our code:
It would be ideal if this happened directly in the
docker-compose
library. So basically the solution would be to associate the task with the service right after the BuildService is registered.Thank you in advance!
The text was updated successfully, but these errors were encountered: