The library can not be used in my gradle script

Ok, I want to try a solution with the aspose imaging library, but the library can not be used in my gradle script.

dependencies {
embedded ‘com.aspose:aspose-barcode:22.2’
embedded ‘com.aspose:aspose-pdf:22.1’
embedded ‘com.aspose:aspose-imaging:22.2-jdk16’
embedded ‘commons-io:commons-io:2.11.0’
}

@Anwender
Hello,
We use the library in the following way

repositories {
    maven { url 'https://repository.aspose.com/repo/' }
}

dependencies {
    compileClasspath(group: 'com.aspose', name: 'aspose-imaging', version: '22.2', classifier: 'jdk16')
    compileClasspath(group: 'com.aspose', name: 'aspose-imaging', version: '22.2', classifier: 'javadoc')
}