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

SB creates an incomplete <service>-uad module

    Details

    • Fix Priority:
      3

      Description

      I created a new Liferay 7.2 gradle workspace using the latest version of blade:
      {{ blade init -v 7.2 sb-test}}

      I created a new module using the Service Builder template:
      {{ cd sb-test/modules && blade create -t service-builder -p com.liferay.sb.test sb-test }}

      I edit the modules/sb-test/sb-test-service/service.xml and make two edits:
      1. I change the userName column entity so that it is:
      <column name="userName" type="String" uad-anonymize-field-name="screenName" />
      2. I change the field1 column entity so that it is:
      <column name="field1" type="String" uad-nonanonymizable="true" />

      I then use the gradle wrapper to invoke buildService to run service builder.

      SB will create a new module for me, modules/sb-test/sb-test-uad, but the new module has issues:

      • It is missing a build.gradle file, this causes gradle to throw an error:
        {{* What went wrong:
        A problem occurred configuring project ':modules:sb-test:sb-test-uad'.
        > Extension of type 'LiferayExtension' does not exist. Currently registered extension types: [ExtraPropertiesExtension]}}
      • It does have a bnd.bnd file, but it uses a different Bundle-Name value than the default format used in the sb-test-api and sb-test-service bnd.bnd files. I would have expected the value to be "sb-test-uad" to be consistent.

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            david.nebinger David Nebinger
            Participants of an Issue:
            Recent user:
            Brian Wulbern
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              42 weeks, 5 days ago

                Packages

                Version Package
                Master