[Java] Upgrade Java version used by toolchain to Java 21 or latest
- Linguagem predominante
- Java
- Estrelas
- 94
- Forks
- 152
- Merge médio
- 3d 16h
- PRs com merge (30d)
- 11
Descrição
### Describe the enhancement requested
As of today, Java 8 or higher is required to build Arrow. This is the version used to launch the Maven process and used by the plugins, including maven-compiler-plugin (and indirectly by `javac` or equivalent).
As the tools and plugins used by Arrow are dropping support for Java 8 bit by bit (and potentially Java 11 as well) and as the Java project also keeps introducing new features of potential interest to the community at a regular 6month cadence, updating the toolchain accordingly and regularly seems to become more and more important.
The proposal is to change Java version requirement to build Arrow to use the latest released version.
The proposal does not change the Java version requirement to use Arrow (which would be still Java 8 or possibly [Java 11 starting Arrow 18.0](https://github.com/apache/arrow/issues/38051)). This includes also unit testing.
To achieve this, work will be divided into multiple incremental steps:
- [ ] [[Java] Add support for JDK version cross-testing](https://github.com/apache/arrow/issues/43380)
- [ ] [Java] Enforce new Java version build requirement
### Component(s)
Continuous Integration, Developer Tools, Java
Guia de contribuição
Direção de pesquisa
Comece pelo processo do Maven e pelas configurações do maven-compiler-plugin descritos na issue e, em seguida, revise o trabalho vinculado de testes cruzados do JDK antes de alterar o requisito de build. A tarefa estará concluída quando o Arrow for compilado com a versão mais recente do Java, enquanto o Java 8 continuar sendo o requisito de runtime e de testes unitários.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- java
- Domínio
- build-system, ci-cd, developer-experience
- Tipo de issue
- Funcionalidade
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Status de atividade
- Estagnada
- Clareza
- Precisa de esclarecimento
- Facilidade para iniciantes
- 30/100