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
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.
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.