Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-110422

Gradle plugins not compatible with gradle 6.0+

    Details

      Description

      When applying pluging com.liferay.node with gradle 6.0+, I got the following error:

      Starting a Gradle Daemon, 2 incompatible Daemons could not be reused, use --status for details
      
      FAILURE: Build failed with an exception.
      
      * Where:
      Build file '/home/dabos/projets/dabos/liferay-gradle-6/build.gradle' line: 9
      
      * What went wrong:
      An exception occurred applying plugin request [id: 'com.liferay.node', version: '7.0.2']
      > Failed to apply plugin [id 'com.liferay.node']
         > Could not create plugin of type 'NodePlugin'.
            > Could not generate a decorated class for type NodePlugin.
               > org.gradle.api.internal.plugins.osgi.OsgiHelper* 
      
      Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.* Get more help at https://help.gradle.orgBUILD FAILED in 13s 

      Caused by https://github.com/gradle/gradle/issues/9433

      Remove OSGI plugin from gradle since version 6.0.

      A solution is to include OsgiHelper class in liferay.

      Cf. https://github.com/liferay/liferay-portal/pull/3742

        Attachments

          Activity

            People

            • Assignee:
              brian.chan Brian Chan
              Reporter:
              damien.abos@gmail.com Damien Abos
              Participants of an Issue:
              Recent user:
              Enterprise Release HU
              Engineering Assignee:
              Peter Shin
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                20 weeks, 6 days ago

                Packages

                Version Package
                7.0.X
                7.1.X
                7.2.X