Java 8 is currently used to build the plugin, however, since the version 4.52 [0] of the plugin-bom
the minimum version needed is Java 11.
In addition, Jenkins uses now Java 11, and it is compatible with Java 17 [1].
Note: After the bump to Java 11, the minimal Jenkins version to use the plugin will be 2.361.4
[0] https://github.com/jenkinsci/plugin-pom/releases/tag/plugin-4.52
[1] https://www.jenkins.io/blog/2022/06/28/require-java-11/