> Should I upgrade the plugin to JDK 9+ or it's not mandatory because from
SLA perspective Jenkins should be upgraded?
I believe jenkins core is still minimum requirement of java 8. According to
https://jenkins.io/doc/administration/requirements/java/ 9 and 10 are
explicitly not supported. So combined with your last question, you could
potentially have users that can't use your plugin. I believe there's ways
to mark your plugin as 11 only.

> Jenkins does not support 9 so should I upgrade to 11 at least?
if you use buildPlugin() jenkins ci will test using 8 and 11, you can
probably use 9, but i would personally skip 9 and goto 11

> Is there any plugin that have been already upgraded and could be taken as
good reference how to make it painless?
When I upgraded blueocean, it was mostly fixing the tests and setting the
serialization whitelist.

https://wiki.jenkins.io/display/JENKINS/Java+11+Developer+Guidelines has a
lot of info

On Sun, Oct 20, 2019 at 2:16 PM Damian Szczepanik <
[email protected]> wrote:

> Hi,
>
> After upgrading some plugin dependencies I found that dependency is
> compiled against JDK 9 while my plugin still uses 8 - compilation has
> failed.
>
> Is there any recommendation, guideline, best practices that guide about:
>
>    1. Should I upgrade the plugin to JDK 9+ or it's not mandatory because
>    from SLA perspective Jenkins should be upgraded?
>    2. Jenkins does not support 9 so should I upgrade to 11 at least?
>    3. Is there any plugin that have been already upgraded and could be
>    taken as good reference how to make it painless?
>    4. What I would loose? eg Jenkins with older JDK won't be able to
>    install new version of my plugin
>
> Damian
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-dev/20bf28ca-34fa-4776-9946-d7c1e166cdcb%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-dev/20bf28ca-34fa-4776-9946-d7c1e166cdcb%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CAG%3D_DuvXsQX_xF6gnTEoH%2B9sjVJs%3DF7VkvQfJqb2H%3DAfTYvq9w%40mail.gmail.com.

Reply via email to