Validating Modules Outside of Workspace

If you prefer to not use Liferay Workspace, but still want to validate modules against a target platform, you must apply the Target Platform Gradle plugin to the root build.gradle file of your multi-module Gradle build. Follow the Targeting a Platform Outside of Workspace section to do this.

Once you have the Target Platform plugin and its BOM dependencies configured, you must configure the targetPlatformDistro dependency. Follow the instructions below to do this.

  1. Open your project’s root build.gradle file.

  2. Add the targetPlatformDistro dependency to the list of dependencies. It should look like this:

    dependencies {
        targetPlatformBoms group: "com.liferay.portal", name: "", version: "7.2.0"
        targetPlatformBoms group: "com.liferay.portal", name: "", version: "7.2.0"
        targetPlatformDistro group: "com.liferay.portal", name "release.portal.distro", version: "7.2.0"

    Liferay DXP users must replace the artifact names and versions:

    • release.portal.distrorelease.dxp.distro

Now you can validate your non-workspace modules against a target platform!

« How to Resolve Common Output Errors Reported by the Resolve TaskLeveraging Docker »
Was this article helpful?
0 out of 0 found this helpful