RE: Version issue in service builder in DXP 7.3

thumbnail
Prashant Ballal, modified 5 Years ago. New Member Posts: 8 Join Date: 1/13/20 Recent Posts
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 thrown
 Unresolved 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
thumbnail
Prashant Ballal, modified 4 Years ago. Liferay Legend Posts: 1555 Join Date: 9/24/09 Recent Posts
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
thumbnail
Prashant Ballal, modified 5 Years ago. New Member Posts: 8 Join Date: 1/13/20 Recent Posts
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.