tailwind-kt icon indicating copy to clipboard operation
tailwind-kt copied to clipboard

Invocation of Task.project at execution time is unsupported

Open CLOVIS-AI opened this issue 2 years ago • 3 comments
trafficstars

🐛 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

CLOVIS-AI avatar Oct 05 '23 18:10 CLOVIS-AI

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

dead8309 avatar Nov 02 '23 14:11 dead8309

Sorry for the late reply too :sweat: It's 1.9.10

CLOVIS-AI avatar Nov 13 '23 20:11 CLOVIS-AI

Can you try version 0.0.4 ?

dead8309 avatar Nov 13 '23 20:11 dead8309