Closed omarismail94 closed 1 month ago
The task is cacheable. I can see a TODO over the problematic line of code that should resolve the issue.
Yes that's correct. We should look into refactoring this function:
To support configuration caching. I'm happy to receive a PR to fix this up π
π Describe the bug
project.extensions.getByType(KtfmtExtension::class.java).toBean()
in KtfmtBaseTask invocation is unsupported with Gradle configuration caching due to call toproject
β οΈ Current behavior
This gets triggered when I register a new task:
and run my gradle task with Gradle configuration caching enabled. An error gets thrown:
Full stack trace: https://ge.androidx.dev/s/nkeb2gxeap5tg/failure?expanded-stacktrace=WyIwLTEiXQ#1
If you expand the stack trace, you can see it is coming from the line I linked to above
β Expected behavior
The task is cacheable. I can see a TODO over the problematic line of code that should resolve the issue.
π£ Steps to reproduce
Register a new task and run it with Gradle configuration caching enabled
π· Screenshots
π± Tech info