Error trying to build project because of Spotless
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 35/100
- Type d'issue
- Bug
- Clarté
- À clarifier
- Activité
- Active
- Stack technique
- java
- Domaine
- build-system
Piste de recherche
Reproduce the failure with ./gradlew build and ./gradlew spotlessApply at tag 5.09.54.184, then inspect the configuration-cache report and rerun with --stacktrace. The report centers on task :spotlessJava and a failed P2 dependency provision; done means identifying the cause and confirming the affected build commands complete successfully.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
I am not a Java developer, I'm sorry if this is the wrong place to report a potential issue.
Thing I'm building: https://github.com/GTNewHorizons/GT5-Unofficial at tag 5.09.54.184
Running a clean ./gradlew build
./gradlew build 6s Tue 29 Sep 2026 18:06:41 BST
Calculating task graph as no cached configuration is available for tasks: build
> Configure project :
You might want to check out './gradlew :faq' if your build fails.
Build script update from 2.0.29 to 2.0.32 available! Run ./gradlew updateBuildScript
Recommend replacing '4.19.0' with '4.19' for Eclipse JDT
'indentWithSpaces' is deprecated, use 'leadingTabsToSpaces' in your gradle build script instead.
'indentWithSpaces' is deprecated, use 'leadingTabsToSpaces' in your gradle build script instead.
1 problem was found storing the configuration cache.
- Task `:spotlessJava` of type `com.diffplug.gradle.spotless.SpotlessTaskImpl`: error writing value of type 'com.diffplug.spotless.ConfigurationCacheHackList'
See the complete report at file:///new2/git/gtnh-gt5u/build/reports/configuration-cache/1n7e5fcbspgs3op8bkqx6kh2d/dl99i0g8cp9r4jwwag6nchp51/configuration-cache-report.html
[Incubating] Problems report is available at: file:///new2/git/gtnh-gt5u/build/reports/problems/problems-report.html
FAILURE: Build failed with an exception.
* What went wrong:
Configuration cache state could not be cached: field `steps` of `com.diffplug.spotless.generic.FenceStep$RoundtripAndEqualityState` bean found in field `equalityStateInternal` of `com.diffplug.spotless.FormatterStepSerializationRoundtrip` bean found in field `cleaned` of `com.diffplug.spotless.FormatterStepSerializationRoundtrip$HackClone` bean found in `com.diffplug.spotless.ConfigurationCacheHackList` bean found in field `stepsInternalEquality` of task `:spotlessJava` of type `com.diffplug.gradle.spotless.SpotlessTaskImpl`: error writing value of type 'com.diffplug.spotless.ConfigurationCacheHackList'
> java.io.IOException: Failed to provision P2 dependencies
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights from a Build Scan (powered by Develocity).
> Get more help at https://help.gradle.org.
BUILD FAILED in 31s
Configuration cache entry discarded due to serialization error.
Running ./gradlew spotlessApply
./gradlew spotlessApply 31.4s Tue 29 Sep 2026 18:12:51 BST
Calculating task graph as no cached configuration is available for tasks: spotlessApply
> Configure project :
You might want to check out './gradlew :faq' if your build fails.
Build script update from 2.0.29 to 2.0.32 available! Run ./gradlew updateBuildScript
Recommend replacing '4.19.0' with '4.19' for Eclipse JDT
'indentWithSpaces' is deprecated, use 'leadingTabsToSpaces' in your gradle build script instead.
'indentWithSpaces' is deprecated, use 'leadingTabsToSpaces' in your gradle build script instead.
1 problem was found storing the configuration cache.
- Task `:spotlessJava` of type `com.diffplug.gradle.spotless.SpotlessTaskImpl`: error writing value of type 'com.diffplug.spotless.ConfigurationCacheHackList'
See the complete report at file:///new2/git/gtnh-gt5u/build/reports/configuration-cache/f5870wp0c1qsv4sz3z0jw24w1/wcpch6scbxef2wy2kiothdee/configuration-cache-report.html
[Incubating] Problems report is available at: file:///new2/git/gtnh-gt5u/build/reports/problems/problems-report.html
FAILURE: Build failed with an exception.
* What went wrong:
Configuration cache state could not be cached: field `steps` of `com.diffplug.spotless.generic.FenceStep$RoundtripAndEqualityState` bean found in field `equalityStateInternal` of `com.diffplug.spotless.FormatterStepSerializationRoundtrip` bean found in field `cleaned` of `com.diffplug.spotless.FormatterStepSerializationRoundtrip$HackClone` bean found in `com.diffplug.spotless.ConfigurationCacheHackList` bean found in field `stepsInternalEquality` of task `:spotlessJava` of type `com.diffplug.gradle.spotless.SpotlessTaskImpl`: error writing value of type 'com.diffplug.spotless.ConfigurationCacheHackList'
> java.io.IOException: Failed to provision P2 dependencies
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights from a Build Scan (powered by Develocity).
> Get more help at https://help.gradle.org.
BUILD FAILED in 5s
Configuration cache entry discarded due to serialization error.
Something about a serialization error, but I don't have a clue where to start. My disk is not full. Running Archlinux with temurin java 25, with the JAVA_HOME directory set. This same error occurs on java 26, and if I do not checkout that specific tag in the repo.
- Langage dominant
- Java
- Étoiles
- 5.7k
- Forks
- 562
- Merge moyen
- 3 j 1 h
- PR mergées (30 j)
- 31
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de diffplug/spotless
-
bug
Difficulté 4/5 3-5 jours Accessibilité débutants 43/100
diffplug/spotless#3147 · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 4/5 3-5 jours Accessibilité débutants 28/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 3/5 1-2 jours Accessibilité débutants 68/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
diffplug/spotless#3067 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 3/5 1-2 jours Accessibilité débutants 66/100
diffplug/spotless#3040 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de diffplug/spotless
Issues similaires
-
status: needs-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
JabRef/jabref#17546 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 86/100
hiero-ledger/hiero-sdk-java#3010 ·
Les mainteneurs répondent en général sous 1 jour
-
Optimize consumer version heatmap aggregation to avoid repeated scansPeut-être pris @praykaria31 l’a pris aujourd’hui. Ouvertetype/enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Apicurio/apicurio-registry#10662 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
a:false-positive
Difficulté 2/5 1-3 heures Accessibilité débutants 77/100
pmd/pmd#7221 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
status: waiting-for-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
spring-projects/spring-boot#52347 ·
Les mainteneurs répondent en général sous 2 jours