I'm currently working on library using spring boot 2.7. In the process of migrating to spring boot 3.1.4 I got an error on a class where:
import org.springframework.cloud.aws.messaging.core.QueueMessagingTemplate;
not found. Eventhough I have the jar present in the classpath but still cannot find the class.
I already cleared the cache, refreshed the gradle dependencies
the gradle file contain the following dependencies:
implementation(platform("org.springframework.cloud:spring-cloud-aws-dependencies:${property('spring-cloud-aws-dependencies.version')}"))
spring-cloud-aws-dependencies.version = 2.2.6.RELEASE
In order to use the SDK with Spring Boot 3, you should change to new dependencies and migrate to the new messaging approach:
Note that using the
spring-cloud-aws-messagingdependency won't solve the issue, as it's not designed for Spring Boot 3, and you'll still probably miss some classes during runtime. I assume that you are usingQueueMessagingTemplateto send to SQS; if that's the case, you can give a try toSqsTemplateto achieve the same.