Uploaded image for project: 'IGB'
  1. IGB
  2. IGBF-3354

Investigate using OSGi v6 declarative services for IGB

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Story Points:
      2
    • Sprint:
      Summer 1 2023 May 15, Summer 2 2023 May 29, Summer 3 2023 June 12, Summer 4 2023 June 26

      Description

      "Starting with the R6 release of the OSGi Declarative Services and Metatype specification, the official annotations support the same features as the Apache Felix SCR annotations in a more elegant manner and even provide additional functionality. Therefore the Apache Felix SCR annotations are now in maintenance mode and therefore you should rather use the official annotations. The Apache Felix maven-bundle-plugin, version 3.0.1 or higher supports those directly and there is no need for an additional plugin anymore." See link

      Moreover, in maven-bundle-plugin, versions lower than 3.0.1 does not support Java11. So upgrading to Java 11 would mean upgrading maven-bundle-plugin, which in turn means abandoning Felix SCR and using recommended OSGi SCR.

      Task: Remove Felix SCR and replace it with OSGi v6 SCR in the Java 11 branch and use officially recommended annotations.

        Attachments

        1. errorOne.png
          errorOne.png
          141 kB
        2. errorTwo.png
          errorTwo.png
          27 kB
        3. guiBuilderErrors.txt
          7 kB

          Issue Links

            Activity

            Hide
            karthik Karthik Raveendran added a comment -

            Note: Reference for migrating Felix annotations to OSGI v6 annotations https://medium.com/globant/declarative-services-from-felix-scr-to-osgi-4770509f1965

            Show
            karthik Karthik Raveendran added a comment - Note: Reference for migrating Felix annotations to OSGI v6 annotations https://medium.com/globant/declarative-services-from-felix-scr-to-osgi-4770509f1965
            Show
            karthik Karthik Raveendran added a comment - Reference links from 3142: https://jira.bioviz.org/browse/IGBF-3142?focusedCommentId=36582&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-36582 https://jira.bioviz.org/browse/IGBF-3142?focusedCommentId=36589&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-36589 https://jira.bioviz.org/browse/IGBF-3142?focusedCommentId=36593&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-36593
            Hide
            ann.loraine Ann Loraine added a comment -

            We are using OSGI core and compendium versions 1.0 the Java 11 branch. Not sure about the Java 1.8 branch (master).
            Today will look at if there is a later version we should use for the Java 11 branch.

            Show
            ann.loraine Ann Loraine added a comment - We are using OSGI core and compendium versions 1.0 the Java 11 branch. Not sure about the Java 1.8 branch (master). Today will look at if there is a later version we should use for the Java 11 branch.
            Hide
            karthik Karthik Raveendran added a comment -

            Below are one of the errors that I have come across while trying to run the IGB project in Java 11 in development mode.

            java: cannot find symbol
              symbol:   method <java.lang.String>newConcurrentHashSet()
              location: class com.google.common.collect.Sets
            

            The reason for this is instead of using guava 31.1 Sets class, the project points to google-collection-1.0 Sets.

            Show
            karthik Karthik Raveendran added a comment - Below are one of the errors that I have come across while trying to run the IGB project in Java 11 in development mode. java: cannot find symbol symbol: method <java.lang. String >newConcurrentHashSet() location: class com.google.common.collect.Sets The reason for this is instead of using guava 31.1 Sets class, the project points to google-collection-1.0 Sets.
            Hide
            karthik Karthik Raveendran added a comment -

            Moving the issue to IGBF-3371

            Show
            karthik Karthik Raveendran added a comment - Moving the issue to IGBF-3371

              People

              • Assignee:
                karthik Karthik Raveendran
                Reporter:
                karthik Karthik Raveendran
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: