Issue
-
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.bndlib
in 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"
Environment
- DXP 7.2+
- Liferay Workspace using Gradle
Resolution
-
The
biz.aQute.bndlib
has intentionally been removed from the Liferay BOM (see LPS-95269) -- as such, a version will need to be specified in order to use this artifact. -
For example:
compileOnly group: "biz.aQute.bnd", name: "biz.aQute.bndlib", version: "3.5.0"
Additional Information
- 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: