-
Type:
Bug
-
Status: Resolved
-
Resolution: Fixed
-
Affects Version/s: 7.2.0 GA1
-
Fix Version/s: Master
-
Component/s: Dev Tools > Project Templates
-
Labels:
-
Fix Priority:3
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.