I am following a beginner's tutorial from here in order to create a service and then consume it from another module (eg. a Portlet)
Everything goes well until I try to deploy it - there is an error in the generated classes: The type com.liferay.petra.sql.dsl.query.DSLQuery cannot be resolved. It is indirectly referenced from required .class files
Locate
build.gradlefile and add the following dependency:Note: you have to add it in both *-api and *-service
build.gradlefiles