Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Version issue in service builder in DXP 7.3
I am trying out DXP 7.3.4 GA5 CE. I have Created a service builder, Initially version of "com.liferay.portal.kernel is 5.4.0" as I deploy it below exception is thrownUnresolved requirement: Import-Package: com.liferay.portal.kernel.model; version="[4.1.0,5.0.0)"_ [Sanitized]
Now If I change the version to 5.0.0, it's not refreshing.
For all the other web modules I have created they are deployed with "com.liferay.portal.kernel -6.0.0"Below is the gradle file while is not working:dependencies {
compileOnly group: "com.liferay", name: "com.liferay.petra.io"
compileOnly group: "com.liferay", name: "com.liferay.petra.lang"
compileOnly group: "com.liferay", name: "com.liferay.petra.string"
compileOnly group: "com.liferay", name: "com.liferay.portal.aop.api"
compileOnly group: "com.liferay.portal", name: "com.liferay.portal.kernel"
compileOnly group: "org.osgi", name: "org.osgi.annotation.versioning"
compileOnly group: "org.osgi", name: "org.osgi.core"
compileOnly group: "org.osgi", name: "org.osgi.service.component.annotations"
}

Thanks In Advance
Attachments:
Can you check your gradle.properties file? There should be a line like
this, can you check it the number is correct?
liferay.workspace.target.platform.version = 7.3.4
liferay.workspace.target.platform.version = 7.3.4
Thanks for the response. This is the solution. I changed gradle.properties to liferay.workspace.target.platform.version = 7.3.4 and deleted the generated classes in service builder and run the buildService. The deployment issue is resolved.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™