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

Abierto
#8,628 1 comentario 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
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
68/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
java
Área
build-system

Línea de trabajo

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.

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

Descripción

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

Lenguaje dominante
Java
Estrellas
1.6k
Forks
499
Merge medio
1 d 5 h
PR fusionados (30 d)
316

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 apache/hop

Todos los issues de apache/hop

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.