[Java] Upgrade Java version used by toolchain to Java 21 or latest
- Lingua principale
- Java
- Stelle
- 94
- Fork
- 152
- Merge medio
- 3g 16h
- PR unite (30g)
- 11
Descrizione
### 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
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia con il processo Maven e le impostazioni di maven-compiler-plugin descritte nell’issue, quindi esamina il lavoro collegato sui test incrociati di JDK prima di modificare il requisito di build. L’attività è completata quando Arrow viene compilato con l’ultima versione rilasciata di Java, mentre Java 8 rimane il requisito per il runtime e gli unit test.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java
- Ambito
- build-system, ci-cd, developer-experience
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 30/100