This commit adds a Gradle property 'testToolchain' that when set will
configure the Java toolchain plugin accordingly.
Additionally:
-------------
* Replace the custom toolchain plugin with the vanilla one provided by
Gradle
* Move the Java conventions from Java plugin to Groovy script
* [CI] Add Java 21 to check-samples.yml