[Task]: Upgrade Spotless and google-java-format so the build runs on JDK 26+

Aperta
#8,628 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
68/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
java
Ambito
build-system

Direzione di ricerca

Start in the Maven build configuration where spotless-maven-plugin 2.43.0 and the googleJavaFormat version are defined. Run spotless:apply on JDK 26 or newer, upgrade the plugin to 3.10.3 and google-java-format to 1.36.1, then verify the build succeeds and only the described formatting and empty-POM-element changes remain.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

awaiting triage Infrastructure P3
What needs to happen?

The build fails on JDK 26 and newer in spotless:apply. google-java-format (the version Spotless 2.43.0 uses by default) reads the javac field JCCompilationUnit.endPositions, which newer JDKs no longer have:

java.lang.NoSuchFieldError: Class com.sun.tools.javac.tree.JCTree$JCCompilationUnit does not have member field 'com.sun.tools.javac.tree.EndPosTable endPositions'

Proposed change

  • spotless-maven-plugin 2.43.0 → 3.10.3
  • pin googleJavaFormat to 1.36.1 (built for Java 21, Hop's current target)

Impact

The newer formatter reformats a small number of files: mostly comment indentation inside switch blocks and a few text blocks. sortPom also collapses empty pom elements to <x/>. No functional changes.

Issue Priority

Priority: 3

Issue Component

Component: Infrastructure

Lingua principale
Java
Stelle
1.6k
Fork
499
Merge medio
1g 5h
PR unite (30g)
316

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di apache/hop

Tutte le issue di apache/hop

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.