Skip to content

Commit

Permalink
Detect event hub by "spring-kafka".
Browse files Browse the repository at this point in the history
  • Loading branch information
rujche committed Feb 18, 2025
1 parent 43097c5 commit f0bf167
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions analyzer/analyzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,13 @@ func analyzePomProject(projectRootPath string, pomFileAbsolutePath string) (Proj
if err != nil {
return result, err
}
} else if dep.GroupId == "org.springframework.kafka" && dep.ArtifactId == "spring-kafka" {
// eventhubs name is empty here because no configured property
err = addApplicationRelatedBackingServiceToResult(&result, applicationName, DefaultEventHubsServiceName,
AzureEventHubs{})
if err != nil {
return result, err
}
}
// todo: support other resource types.
}
Expand Down

0 comments on commit f0bf167

Please sign in to comment.