Message Boards
Issue overriding Calendar
Daniel G, modified 2 Years ago.
Issue overriding Calendar
Regular Member Posts: 141 Join Date: 3/14/17 Recent PostsHi,
I am trying to override Calendar portlet and I am facing issues with dependencies. I was able to do it in Liferay 7.1, but now I am in 7.3 and I am not being able to add the needed dependencies.
This is my build.gradle
dependencies {
c compileOnly group: "com.liferay.portal", name: "release.dxp.api"
compileInclude group: 'com.liferay', name: 'com.liferay.frontend.editor.taglib', version: '1.0.2'
compile group: "com.liferay.portal", name: "com.liferay.portal.impl"
compileOnly group: "com.liferay.portal", name: "com.liferay.portal.kernel"
compileOnly group: "com.liferay.portal", name: "com.liferay.util.java"
compileOnly group: "com.liferay.portal", name: "com.liferay.util.taglib"
compileOnly group: "javax.portlet", name: "portlet-api", version: "3.0.1"
compileOnly group: "javax.servlet.jsp", name: "javax.servlet.jsp-api", version: "2.3.1"
compileOnly group: "org.apache.felix", name: "org.apache.felix.http.servlet-api", version: "1.1.2"
compileOnly group: "org.osgi", name: "org.osgi.service.component.annotations", version: "1.3.0"
compile group: "com.liferay", name: "com.liferay.calendar.web", version: "4.0.50"
compileOnly group: "com.liferay", name: "com.liferay.calendar.api", version: "5.6.0"
compileOnly group: "com.liferay", name: "com.liferay.calendar.service", version: "5.0.41"
compile group: 'com.liferay', name: 'com.liferay.asset.api', version: '2.5.3'
}
jar.archiveName = 'com.liferay.calendar.web.jar'
and this is my bnd file
Bundle-Name: Liferay Calendar Web
Bundle-SymbolicName: com.liferay.calendar.web
Bundle-Version: 4.0.50
Liferay-JS-Config: /META-INF/resources/js/config.js
Web-ContextPath: /calendar-web
Include-Resource: @com.liferay.calendar.web-4.0.50.jar
-noee:true
but when I deploy the module, I see this error in logs and the module does not start:
org.osgi.framework.BundleException: Could not resolve module: com.liferay.calendar.web [523]_ Unresolved requirement: Import-Package: com.liferay.calendar.web.internal.constants_ [Sanitized]
Any ideas? Any help would be very appreciated
Thanks in advance,
Regards!