Aspose Total BOM cannot be used for Gradle builds

see Gradle documentation at:
https://docs.gradle.org/current/userguide/platforms.html#sub:bom_import

The Aspose Total BOM does not contain packaging/pom:
<packaging>pom</packaging>

Compare to:
Spring Framework:
https://repo1.maven.org/maven2/org/springframework/spring-framework-bom/5.3.16/spring-framework-bom-5.3.16.pom

Junit 5:
https://repo1.maven.org/maven2/org/junit/junit-bom/5.8.2/junit-bom-5.8.2.pom

@depi

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

I was misunderstood.
it is the shipped BOM at On Premise File Format API Releases | Aspose

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.

@depi

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

@depi

The Aspose.Total BOM did not contain packaging:
<packaging>pom</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: Maven – Introduction to the Dependency Mechanism

Gradle does not recognize the dependencies without dependencyManagement section.

@depi

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

@depi

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'

@depi

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.