We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Aspose Total BOM cannot be used for Gradle builds

see Gradle documentation at:

The Aspose Total BOM does not contain packaging/pom:

Compare to:
Spring Framework:

Junit 5:


We suggest you please check the following post. Hope this helps you.

I was misunderstood.
it is the shipped BOM at https://repository.aspose.com/webapp/#/artifacts/browse/tree/General/repo/com/aspose/aspose-total/22.2/aspose-total-22.2.pom

The documented code for gradle does not work:
compile(group: ‘com.aspose’, name: ‘aspose-total’, version: ‘22.2’, ext: ‘pom’)

The Gradle preferred way is:
implementation (platform(‘com.aspose:aspose-total:22.2’))
implementation ‘com.aspose:aspose-word’
implementation ‘com.aspose:aspose-pdf’

but this does not work, because the ‘packaging’ attribute is missing.


We are investigating this issue and will inform you via this forum thread once there is an update available on it. We suggest you please download Aspose.Total for Java from here:
Download Aspose.Total for Java


The Aspose.Total BOM did not contain packaging:

It has been updated in pom.xml and working under Gradle. Please try again and let us know if you face any issue.

The “packaging” update is ok - but BOM files should have a dependencyManagement section, see: https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Management

Gradle does not recognize the dependencies without dependencyManagement section.


We are checking it and will get back to you shortly.


We have created a sample Gradle project using Aspose.Total and have not found the shared issue. We have uploaded it at GitHub. We have also verified that it downloads all Aspose.Total dependencies out of the box.

This is how you need to add dependencies in Gradle.

dependencies {
	compile(group: 'com.aspose', name: 'aspose-total', version: '22.2')

That works - but everything is downloaded here (all Aspose Total modules).

A typical use case for Gradle/Maven is to define the versions via BOM, but then only to reference the modules you need.

implementation (platform('com.aspose:aspose-total:22.2'))
implementation  'com.aspose:aspose-cells'  // do not repeat version here or classifier
implementation  'com.aspose:aspose-email'
implementation  'com.aspose:aspose-pdf'


Thanks for your feedback. It seems that your problem has been solved. Please feel free to ask if you have any question about Aspose APIs, we will be happy to help you.