Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Error trying to build project because of Spotless

Abierto
#3,119 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Activo
Stack tecnológico
java
Área
build-system

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Java
Estrellas
5.7k
Forks
563
Merge medio
1 d 8 h
PR fusionados (30 d)
52

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de diffplug/spotless

Todos los issues de diffplug/spotless

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.