<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Dependency Issue</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=114579168" />
  <subtitle>Dependency Issue</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=114579168</id>
  <updated>2026-04-06T09:49:17Z</updated>
  <dc:date>2026-04-06T09:49:17Z</dc:date>
  <entry>
    <title>RE: Dependency Issue</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114636280" />
    <author>
      <name>Shiva Lingam K</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114636280</id>
    <updated>2019-08-07T11:12:06Z</updated>
    <published>2019-08-07T11:12:06Z</published>
    <summary type="html">Thank You, Andrew, your suggestion has worked.CalEvent model has changed to CalendarBooking.It is working fine now&lt;img alt="emoticon" src="@theme_images_path@/emoticons/happy.gif" &gt;​​​​​​​</summary>
    <dc:creator>Shiva Lingam K</dc:creator>
    <dc:date>2019-08-07T11:12:06Z</dc:date>
  </entry>
  <entry>
    <title>RE: Dependency Issue</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114581705" />
    <author>
      <name>Andrew Jardine</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114581705</id>
    <updated>2019-08-02T14:36:17Z</updated>
    <published>2019-08-02T14:36:17Z</published>
    <summary type="html">Hi Shiva,&lt;br /&gt;&lt;br /&gt;I have no real world experience with the calendar portlet before Liferay 7, but I think the CalEvent model object was moved/renamed to CalendarBooking starting in Liferay 7. &lt;br /&gt;&lt;br /&gt;I would recommend that you update your code that you are porting from 6.2 to reference the new 7.x model and that way you can reference the correct (OSGI based) classes and avoid those types of errors. Referecing that portal-service.jar could cause all sorts of problems for you in 7+ as a lot fo the services are still available in 7+ but under different packages. I think using that appraoch you&amp;#39;d end up in a really frustrating and confusing mess. </summary>
    <dc:creator>Andrew Jardine</dc:creator>
    <dc:date>2019-08-02T14:36:17Z</dc:date>
  </entry>
  <entry>
    <title>Dependency Issue</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114579167" />
    <author>
      <name>Shiva Lingam K</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114579167</id>
    <updated>2019-08-02T11:13:22Z</updated>
    <published>2019-08-02T11:13:22Z</published>
    <summary type="html">Hello everyone,&lt;br /&gt;&lt;br /&gt;I want to use CalEvent class in Liferay 7.2 which is removed after Liferay 6.2. So, I have used &lt;br /&gt;          compileOnly  group: &amp;#39;com.liferay.portal&amp;#39;, name: &amp;#39;portal-service&amp;#39;, version: &amp;#39;6.2.5&amp;#39;  in build.gradle.After adding that CalEvent class is working but I am getting the below issue while deploying&lt;br /&gt;&lt;br /&gt;org.osgi.framework.BundleException: Could not resolve module: ca.cityofkingston.hooks.action [1148]_  Unresolved requirement: Import-Package: com.liferay.portlet.calendar.model; version=&amp;#34;[6.2.0,7.0.0)&amp;#34;_ [Sanitized]&lt;br /&gt;    at org.eclipse.osgi.container.Module.start(Module.java:444)&lt;br /&gt;    at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:428)&lt;br /&gt;    at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1264)&lt;br /&gt;    at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1237)&lt;br /&gt;    at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:520)&lt;br /&gt;    at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365)&lt;br /&gt;    at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So, after adding Include-Resource: @portal-service-6.2.5.jar in bnd.bnd file then I am getting the below error&lt;br /&gt;[aQute.bnd.annotation.ProviderType annotation used in class com.liferay.counter.model.CounterModel. Bnd versioning annotations are deprecated as of Bnd 3.2 and support will be removed in Bnd 4.0. Please change to use OSGi versioning annotations., aQute.bnd.annotation. ]&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #ff0000"&gt;FAILURE: Build failed with an exception.&lt;br /&gt;&lt;br /&gt;* What went wrong:&lt;br /&gt;Could not copy MANIFEST.MF to &amp;#39;D:\Liferay_7.2Workspace\modules\kingston-liferay-hook\build\tmp\jar\MANIFEST.MF&amp;#39;.&lt;br /&gt;&amp;gt; Build has errors&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Can anyone resolve the solution ??</summary>
    <dc:creator>Shiva Lingam K</dc:creator>
    <dc:date>2019-08-02T11:13:22Z</dc:date>
  </entry>
</feed>
