See the "Known developer tools issues" for more known issues in Plugin POM and Jenkins plugins.
Make sure your plugin is tested in Continuous Integration on Java 8 and Java 11 at the same time
Since this addition, it is now recommended that you use the following configuration in your plugin:
By default, this will build your plugin:
- on the default configuration, extracted from your pom.xml
- on Jenkins 2.164.1 using a JDK 8
- on Jenkins 2.164.1 using a JDK 11
All this both on Windows and Linux.
Release an experimental plugin version specifically for Java 11