This repository was archived by the owner on Jul 23, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Errors with implicit dependencies: Failure in Gradle 8.xΒ #150
Copy link
Copy link
Open
Description
π Describe the bug
Build failure due to implicit dependencies:
FAILURE: Build failed with an exception.
* What went wrong:
Some problems were found with the configuration of task ':samples:fullstack:basic:frontend:browserProductionWebpack' (type 'KotlinWebpack').
- Gradle detected a problem with the following location: '/Volumes/VAULTROOM/elide/framework/build/js/packages/elide-frontend'.
Reason: Task ':samples:fullstack:basic:frontend:browserProductionWebpack' uses this output of task ':samples:fullstack:react-ssr:frontend:productionExecutableCompileSync' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
Possible solutions:
1. Declare task ':samples:fullstack:react-ssr:frontend:productionExecutableCompileSync' as an input of ':samples:fullstack:basic:frontend:browserProductionWebpack'.
2. Declare an explicit dependency on ':samples:fullstack:react-ssr:frontend:productionExecutableCompileSync' from ':samples:fullstack:basic:frontend:browserProductionWebpack' using Task#dependsOn.
3. Declare an explicit dependency on ':samples:fullstack:react-ssr:frontend:productionExecutableCompileSync' from ':samples:fullstack:basic:frontend:browserProductionWebpack' using Task#mustRunAfter.
Please refer to https://docs.gradle.org/8.1.2-buildless-11-20230501070000+0000/userguide/validation_problems.html#implicit_dependency for more details about this problem.
- Gradle detected a problem with the following location: '/Volumes/VAULTROOM/elide/framework/build/js/packages/elide-frontend'.
Reason: Task ':samples:fullstack:basic:frontend:browserProductionWebpack' uses this output of task ':samples:fullstack:react:frontend:productionExecutableCompileSync' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
Possible solutions:
1. Declare task ':samples:fullstack:react:frontend:productionExecutableCompileSync' as an input of ':samples:fullstack:basic:frontend:browserProductionWebpack'.
2. Declare an explicit dependency on ':samples:fullstack:react:frontend:productionExecutableCompileSync' from ':samples:fullstack:basic:frontend:browserProductionWebpack' using Task#dependsOn.
3. Declare an explicit dependency on ':samples:fullstack:react:frontend:productionExecutableCompileSync' from ':samples:fullstack:basic:frontend:browserProductionWebpack' using Task#mustRunAfter.
Please refer to https://docs.gradle.org/8.1.2-buildless-11-20230501070000+0000/userguide/validation_problems.html#implicit_dependency for more details about this problem.
β οΈ Current behavior
It throws an error
β Expected behavior
It should not throw an error
π£ Steps to reproduce
Use the plugin from Gradle 8.x
π· Screenshots
See above
π± Tech info
Irrelevant
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
No status