Description
Describe the bug
Trying to compile simple example like spring-cloud-azure-starter-eventhubs with gradle. With following dependencies
dependencies {
implementation 'com.azure.spring:spring-cloud-azure-starter'
implementation 'com.azure.spring:spring-cloud-azure-starter-eventhubs'
...
}
but it does not compile, see error below. Issue might be caused by the module "Spring Cloud Azure Starter Event Hubs" (imported via above mentioned dependencies itself. In its pom.xml it defines:
...
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-messaging-eventhubs</artifactId>
<version>5.20.1</version> <!-- {x-version-update;com.azure:azure-messaging-eventhubs;dependency} -->
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-messaging-eventhubs-checkpointstore-blob</artifactId>
<version>1.20.5</version> <!-- {x-version-update;com.azure:azure-messaging-eventhubs-checkpointstore-blob;dependency} -->
</dependency>
...
where it probably should be com.azure.spring
and spring-messaging-azure-eventhubs
Exception or Stack Trace
ReceiveEventsService.java:4: error: package com.azure.spring.messaging.eventhubs.implementation.core.annotation does not exist
import com.azure.spring.messaging.eventhubs.implementation.core.annotation.EventHubsListener;
To Reproduce
Steps to reproduce the behavior: Checkout and try to compile
Code Snippet
See spring-cloud-azure-starter-eventhubs.
Expected behavior
Compiles and works
Screenshots
If applicable, add screenshots to help explain your problem.
Setup (please complete the following information):
- OS: Ubuntu
- IDE: Intellij
- Library/Libraries: [e.g. com.azure:azure-core:1.16.0 (groupId:artifactId:version)]
- Java version: Java 21
- App Server/Environment: SpringBoot fat jar
- Frameworks: SpringBoot
Additional context
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
- Bug Description Added
- Repro Steps Added
- Setup information Added
Metadata
Metadata
Assignees
Labels
Type
Projects
Status