Skip to content

[BUG] spring-cloud-azure-starter-eventhubs is pulling wrong dependencies #45069

Open
@damzog

Description

@damzog

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

ClientThis issue points to a problem in the data-plane of the library.azure-springAll azure-spring related issuescustomer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions