When using the Target Platform functionality in a Liferay Workspace (to use the dependencies from the target version's BOM) to try to include the
biz.aQute.bndlibin a 7.2 dxp-5 custom module, it fails to compile. This used to build without issue in earlier versions of Liferay.
The configuration we are using in gradle.properties is:
compileOnly group: "biz.aQute.bnd", name: "biz.aQute.bndlib"
- DXP 7.2+
- Liferay Workspace using Gradle
- If desired, it is possible to add a version for this artifact (and others) in a custom BOM, to prevent needing to populate versions of dependencies in multiple OSGi modules
- More information on the Target Platform can be found in the following articles: