Circular dependency issueCircular dependency issuehttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1214896132024-03-28T15:08:30Z2024-03-28T15:08:30ZRE: Circular dependency issueOlaf Kockhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1214901222022-08-07T18:48:57Z2022-08-07T18:48:56Z<p>Circular dependencies are typically resolved through introducing a
third module, on which both previous modules depend. This way, the
dependency is unidirectional.</p>
<p>If you absolutely object to add another module, you can also merge
the two current modules into just one.</p>
<p>Which of the solutions is best depends on the size of both and your
future plans with the module(s)</p>Olaf Kock2022-08-07T18:48:56ZCircular dependency issueboveri aseahttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1214896122022-08-05T15:38:28Z2022-08-05T12:35:03Z<p>I am using Liferay 7.3.7 ga8. I am wondering how to best approach the following:</p>
<p>- I want to extend a module (e.g. social-activities-web)</p>
<p>- I created my own module e.g. my-social-activities (**). My module
needed some internal classes from social-activities-web. So I used
fragment to export the internal classes. (*)</p>
<p>- After defining new implementation of my-social-activities e.g.
NewSocialActivitiesDisplayContext. I once again need to change the
fragment and e.g. add lines of code in init-ext.jsp (***).</p>
<p>The problem is when I run gradlew clean deploy, it seems that there
are circular dependencies issues. My module, social-activities-web and
fragment started and stopped all the time. I think the problem is the
following: My module depends on internal classes aka fragment, but
then the code in init-ext.jsp depends on my module and seem to lead to
circular dependencies issue. Is there a better way to implement this?
I a