Package does not exist from the library

Hello, I’m currently trying to switch my library to 7.3 version of gradle, right now it’s 5.6.2

I have next dependencies in my code

    compile("software.amazon.awssdk:sns:${awsSdkVersion}")
    compile("software.amazon.awssdk:sqs:${awsSdkVersion}")
    compile("software.amazon.awssdk:s3:${awsSdkVersion}")

and when I’ve added library jar to project dependencies, I can see all imports,
but after switching to 7.3.3, I’ve changed dependencies in libraries to next one:

    implementation("software.amazon.awssdk:sns:${awsSdkVersion}")
    implementation("software.amazon.awssdk:sqs:${awsSdkVersion}")
    implementation("software.amazon.awssdk:s3:${awsSdkVersion}")

And in project which is using library, I’ve got next compile errors

 error: package software.amazon.awssdk.services.sns does not exist
error: package software.amazon.awssdk.services.sns.model does not exist
 package software.amazon.awssdk.services.sqs.does not exist
 package software.amazon.awssdk.services.sqs.model does not exist

I’ve tried to change java plugin to java-library and then change implementation to api, but it’s doesn’t help.
What I’m doing wrong?

Switching to java-library and exposing the packages with api should solve your problems.

Can you please post the dependencies: gradlew :dependencies

Yes, I’ve tried to publish jar to maven local with api and everything works fine