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

Configuration Cache error #57

Closed
burntcookie90 opened this issue Jan 5, 2024 · 1 comment · Fixed by #62
Closed

Configuration Cache error #57

burntcookie90 opened this issue Jan 5, 2024 · 1 comment · Fixed by #62

Comments

@burntcookie90
Copy link

🐛 Describe the bug

Error when running dependencyGraph

FAILURE: Build failed with an exception.

* What went wrong:
Configuration cache problems found in this build.

41 problems were found storing the configuration cache, 1 of which seems unique.
- Task `:dependencyGraph` of type `io.github.adityabhaskar.dependencygraph.plugin.DependencyGraphTask`: invocation of 'Task.project' at execution time is unsupported.
  See https://docs.gradle.org/8.2/userguide/configuration_cache.html#config_cache:requirements:use_project_during_execution

⚠️ Current behavior

Errors when running task but generates the files.

✅ Expected behavior

No error, support configuration cache correctly

💣 Steps to reproduce

Enable gradle configuration cache and run dependencyGraph

📷 Screenshots

📱 Tech info

  • Library/App version: 0.1.4
@burntcookie90
Copy link
Author

workaround in the meantime:

tasks.withType(DependencyGraphTask).configureEach {
  notCompatibleWithConfigurationCache("https://github.com/adityabhaskar/Gradle-dependency-graphs/issues/57")
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants