dead8309 / dead8309/tailwind-kt

Invocation of Task.project at execution time is unsupported

Open
#2 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
34
Forks
1
PR merge metrics
No merged PRs in 30d

Description

## 🐛 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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.