The issue stems from removing the classifier: 'jdk17' declaration, which is critical for project functionality. Aspose.Words requires explicit JDK 17 classifier specification. Without it, the default build is downloaded – lacking Java 17-specific classes.
The import error occurs solely due to the missing classifier: 'jdk17' declaration. Restore the classifier in your Gradle configuration – and the existing code will function without modifications. Aspose does not yet consolidate multi-JDK builds into a single artifact, making the classifier mandatory when targeting Java 17.
@vyacheslav.deryushev my question is when will this project and the others be moved to newer classes? There are other products on jdk 16. When does Aspose expect to use the latest or at least newer versions?
Several years ago we tried to recognise local version of Jdk in aspose-words.pom but many customers complained about wrong jdk version for rare jdk build, and we returned jdk16 and jdk17 classifier.