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

Invocation of Task.project at execution time is unsupported #2

Open
CLOVIS-AI opened this issue Oct 5, 2023 · 3 comments
Open

Invocation of Task.project at execution time is unsupported #2

CLOVIS-AI opened this issue Oct 5, 2023 · 3 comments

Comments

@CLOVIS-AI
Copy link

🐛 Describe the bug

When importing the plugin, the build fails with

FAILURE: Build failed with an exception.
* What went wrong:
Configuration cache problems found in this build.
3 problems were found storing the configuration cache, 2 of which seem unique.
- Task `:demo:copyConfigFiles` of type `kizzy.tailwind.task.CopyConfigsTask`: invocation of 'Task.project' at execution time is unsupported.
  See https://docs.gradle.org/8.3/userguide/configuration_cache.html#config_cache:requirements:use_project_during_execution
- Task `:demo:generateDefaultFiles` of type `kizzy.tailwind.task.GenerateDefaultConfigTask`: invocation of 'Task.project' at execution time is unsupported.
  See https://docs.gradle.org/8.3/userguide/configuration_cache.html#config_cache:requirements:use_project_during_execution
See the complete report at file:///home/ivan/Projects/opensavvy/ui/compose-material3-tailwind/build/reports/configuration-cache/rkwvvje27jtjdffvymr46l1n/3yy8fnxckvmcx3xjnxq9vpfm6/configuration-cache-report.html
> Invocation of 'Task.project' by task ':demo:generateDefaultFiles' at execution time is unsupported.
> Invocation of 'Task.project' by task ':demo:copyConfigFiles' at execution time is unsupported.

⚠️ Current behavior

The build crashes.

✅ Expected behavior

The build works.

💣 Steps to reproduce

I'm not sure what the exact cause is. Here are a few candidates:

  • I have the configuration cache enabled
  • I'm using the kotlin("multiplatform") plugin

📱 Tech info

  • Device: Desktop
  • Library/App version: 0.0.3
@dead8309
Copy link
Owner

dead8309 commented Nov 2, 2023

Sorry for late reply, Can I know the kotlin version of this project

@CLOVIS-AI
Copy link
Author

Sorry for the late reply too 😓 It's 1.9.10

@dead8309
Copy link
Owner

Can you try version 0.0.4 ?

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

No branches or pull requests

2 participants