How to include the gradle dependency of a module into another module project?
How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!
While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.
Legacy Article
You are viewing an article from our legacy "FastTrack"
publication program, made available for informational purposes. Articles
in this program were published without a requirement for independent
editing or verification and are provided"as is" without
guarantee.
Before using any information from this article, independently verify its
suitability for your situation and project.
Issue
- How to include the Gradle dependency of a module (Workspace A) into another module (Workspace B) project?
Resolution
Please Note: Please choose to follow your appropriate discretion in the use of this information as these are not documented by Liferay. Feel free to connect with the developer team for further assistance.
-
If you have a multi-module project - you probably have a lot of common dependencies in your modules, and if you want to reuse them from a single place, please go through the following unofficial article
-
To include a project dependency in Gradle, it provides the following settings.
settings.gradle in MainProject
include ':ProjectOne', ':ProjectTwo'
project(':ProjectOne').projectDir = new File(settingsDir, '../ProjectOne')
project(':ProjectTwo').projectDir = new File(settingsDir, '../ProjectTwo')
Did this article resolve your issue ?