Scott Palmer
07/28/2026, 9:24 PMsettings.gradle file like this:
rootProject.name = 'my-service'
include ':public-api'
project(':public-api').name = 'my-service-public-api'
but then I decided to do things differently and changed that to simply:
rootProject.name = 'my-service'
include ':public-api'
but the build cache was confused. The public-api sub-project is generating Java code from Smithy specifications. It seems that the spotless code formatting plugin was now stuck looking at the old path for the generated code because of the build cache. Clean builds didn't help, I had to manually delete ~/.gradle/caches/build-cache-1 .
Is this a Gradle problem or a spotless plugin problem? (or a me problem? š )Vampire
07/29/2026, 6:27 AM--rerun should have helped I think, at least I mean to remember it would also update the build cache entry.
Anyway, if a build cache entry is wrongly reused, that usually means that the tasks inputs are not declared properly. You can enable the cache debugging to see exactly what becomes part of the cache fingerprint.
But I'm not sure what you mean exactly. You didn't change paths, did you? You only changed the project name. I usually use the final name and then set the project dir, but doing it like you did should afair also work.Scott Palmer
07/29/2026, 4:57 PM./public-api/build/smithyprojections/<project-name>/codegen/java-codegen/java/<package-path>/*.javaVampire
07/29/2026, 9:29 PMScott Palmer
07/29/2026, 10:13 PMVampire
07/29/2026, 10:40 PMVampire
07/29/2026, 10:40 PMVampire
07/29/2026, 10:40 PM> Task cache issue public apismithyBuild
Caching disabled for task 'cache issue public apismithyBuild' because:
Build cache is disabled
Caching has not been enabled for the task
Task 'cache issue public apismithyBuild' is not up-to-date because:
Output property 'outputDir' file D:\Sourcecode\other\others\gradle_bug\public-api\build\smithyprojections\cache-issue-public-api has been removed.
Output property 'outputDir' file D:\Sourcecode\other\others\gradle_bug\public-api\build\smithyprojections\cache-issue-public-api\codegen has been removed.
Output property 'outputDir' file D:\Sourcecode\other\others\gradle_bug\public-api\build\smithyprojections\cache-issue-public-api\codegen\build-info has been removed.
and more...
Running smithy build
Vampire
07/29/2026, 10:43 PMVampire
07/29/2026, 10:43 PMVampire
07/29/2026, 10:44 PMScott Palmer
07/29/2026, 10:45 PMScott Palmer
07/29/2026, 10:45 PMScott Palmer
07/29/2026, 10:48 PM* What went wrong:
Execution failed for task ':cache-issue-public-api:compileJava' (registered by plugin class 'org.gradle.api.plugins.JavaBasePlugin').
> Cannot access input property 'stableSources' of task ':cache-issue-public-api:compileJava'. Accessing unreadable inputs or outputs is not supported. Declare the task as untracked by using Task.doNotTrackState(). For more information, please refer to <https://docs.gradle.org/9.7.0-rc-1/userguide/incremental_build.html#sec:disable-state-tracking> in the Gradle documentation.
Is that what happened to you? (This is the first time I've seen anything like that error)
I even diffed the folders where I am successfully compiling, and the unzipped version I gave you. They are the same. Very weird.Scott Palmer
07/29/2026, 10:57 PMVampire
07/30/2026, 6:20 AMIs that what happened to you? (This is the first time I've seen anything like that error)
No, as I said, Spotless complained about something.
Ah.. sorry the missing bit.. I have enabled the build cache in my per-user settings:
That's quite dangerous. Not every build is capable of proper caching, let alone parallel execution. I would never enable those generally but always build specifically. With having it in you user file, you might run builds with these settings in that are not compatible with them, and build you sister with others that could use them don't do when others run them. Unless of course, if you never run anyone else's builds and never share any build. Anyway, as I said I also tried with caching enabled (unlikely it is parallel specific), and still got no problem, and the task also still is not cacheable anyway.
Scott Palmer
07/30/2026, 1:32 PM--rerun-tasks works, so there is no need to manually delete the build cache. I'm not going to spend any more time on it. Thanks for trying!Vampire
07/30/2026, 2:04 PMLibrary.java coming from the zip has LF EOL,
while it expects CRLF EOLs which per-se is a quite non-sense check imho. š¤·āāļøScott Palmer
07/30/2026, 3:04 PM