Could not resolve: com.aspose:aspose-cells:24.3 for java 21

I am upgrading my Java version to java 21. After adding
implementation group: ‘com.aspose’, name: ‘aspose-cells’, version: ‘24.3’
implementation group: ‘com.aspose’, name: ‘aspose-slides’, version:‘24.4’, classifier:‘jdk21’ in my build.gradle, i am getting error “Could not resolve: com.aspose:aspose-cells:24.3” .
can you tell me the right version which support java 21
Gradle version : 8.5

@chinmayaPahi
Please add the following setting in your build.gradle script and try it again.

//Add Aspose maven repository
repositories {
    mavenCentral()
    maven {
        url "https://releases.aspose.com/java/repo/"
    }
}

Still same issue .: “**Could not resolve: com.aspose:aspose-cells:24.3
Could not resolve: com.aspose:aspose-slides:24.3 **”
implementation group: ‘com.aspose’, name: ‘aspose-cells’, version: ‘24.3’
implementation group: ‘com.aspose’, name: ‘aspose-slides’, version:‘24.3’, classifier:‘jdk21’

Could you please try using:
implementation group: ‘com.aspose’, name: ‘aspose-slides’, version:‘24.3’, classifier:‘jdk16’

Same issue:
Could not resolve: com.aspose:aspose-slides:24.3

Task :nothing UP-TO-DATE

Could not resolve: com.aspose:aspose-slides:24.3

I am using gradle 8.5 version.Is there any issue with this gradle vesrion

@chinmayaPahi
Compile and implementation have different external visibility.
Would you like to try using:
compile group: ‘com.aspose’, name: ‘aspose-cells’, version: ‘24.3’

1 Like

@chinmayaPahi ,

I built a demo project with Gradle 8.5, Aspose.Cells for Java 24.3 and target Java 21.
cells-gradle.zip (49.1 KB)

It works OK. After running command gradlew build and gradlew run in the working folder “cells-gradle”, the file “output.xlsx” is generated in the “app” folder.

Please check it on your side and let us know your feedback.

@chinmayaPahi ,

Also, after adding Aspose.Slides dependency implementation("com.aspose:aspose-slides:24.3:jdk16") in “app/build.gradle”, it also works OK.

dependencies {
    // Use JUnit test framework.
    testImplementation libs.junit

    // This dependency is used by the application.
    implementation libs.guava
    implementation("com.aspose:aspose-cells:24.3")
    implementation("com.aspose:aspose-slides:24.3:jdk16")
}