Skip to content
This repository was archived by the owner on Jul 23, 2025. It is now read-only.
This repository was archived by the owner on Jul 23, 2025. It is now read-only.

Errors with implicit dependencies: Failure in Gradle 8.x #150

Description

@sgammon

🐛 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

  • Status
    No status

Relationships

None yet

Development

No branches or pull requests

Issue actions