[
https://issues.apache.org/jira/browse/SLING-8728?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17144862#comment-17144862
]
Robert Munteanu commented on SLING-8728:
----------------------------------------
SonarCloud is moving to Java 11 only in October 2020 - see
https://community.sonarsource.com/t/sonarcloud-scanner-environment-soon-to-require-java-11/25374
.
> Make sure Sling modules can be built with Java 8, Java 11 and the latest
> release
> --------------------------------------------------------------------------------
>
> Key: SLING-8728
> URL: https://issues.apache.org/jira/browse/SLING-8728
> Project: Sling
> Issue Type: Task
> Components: Tooling
> Reporter: Radu Cotescu
> Priority: Major
>
> While Sling code can run on Java 8 and Java 11, we should validate that our
> modules can also be built using:
> * Java 8
> * Java 11
> * latest Java release
> This would reduce the effort of supporting newer LTS Java versions, by
> incrementally adapting our build process / code.
> Before enabling the jobs in Jenkins, we should make sure that all modules use
> {{sling}} or {{sling-bundle-parent}} POMs version 35 or greater.
> For some modules this requires migrating to the new OSGi annotations. A good
> guide for that is
> https://blog.osoco.de/2016/05/migrating-from-the-apache-felix-scr-annotations-to-the-osgi-declarative-services-annotations/.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)