Per Robert Tang on LRSUPPORT-33999:
HC Ticket: Ticket #12891
Description of Issue:
For our build tools/templates in 7.2, we made the change to use "ds" (Declarative Services) as the default when creating Service Builder projects and their templates via blade create -t service-builder serviceName. Whereas in earlier versions, our templates created these same services using "spring".
This is an issue if a client is wanting to create a "spring" service with our 7.2 build tools, since the template that is generated only contains the api packages to be used for "ds". As a result, attempts to create .jar files from the service will error out.
See LPP-35139 for reference and more details: https://issues.liferay.com/browse/LPP-35139
In our existing documentation: https://help.liferay.com/hc/en-us/articles/360030614072-Defining-Global-Service-Information#dependency-injector, it states that either "ds" or "spring" can be selected for dependency injector. But the documentation is incomplete as there are additional steps that need to be taken when using the 7.2 Service Builder tools/templates to create a project using "spring". Details can be found in LPP-35139.
In addition, documentation already exists for migrating a Service Builder project from "spring" to "ds": https://help.liferay.com/hc/en-us/articles/360032624732-Migrating-a-Service-Builder-Module-from-Spring-DI-to-OSGi-DS
But the equivalent article is not available if a customer wants to go from "ds" to "spring".
Create new article for 7.2 which lays out a clear path/process for using 7.2 Service Builder tools/templates to build projects with "spring" as the dependency injector.
* Please see Zendesk Support tab for further comments and attachments.