Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

Error trying to build project because of Spotless

Aberta
#3,119 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
35/100
Tipo de issue
Bug
Clareza
Precisa de esclarecimento
Status de atividade
Ativa
Stack de tecnologia
java
Domínio
build-system

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
Java
Estrelas
5.7k
Forks
563
Merge médio
1d 8h
PRs com merge (30d)
52

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de diffplug/spotless

Todas as issues de diffplug/spotless

Issues semelhantes

Mais issues de Java

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.