Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sgammon opened this issue May 1, 2023 · 0 comments
Open

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

sgammon opened this issue May 1, 2023 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@sgammon
Copy link
Member

sgammon commented May 1, 2023

🐛 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

@sgammon sgammon added the bug Something isn't working label May 1, 2023
@sgammon sgammon added this to the 1.0.0 milestone May 1, 2023
@sgammon sgammon self-assigned this May 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant