-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Detect spring.application.name
and show in azure.yaml
#62
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,6 +93,7 @@ func detectAzureDependenciesByAnalyzingSpringBootProject( | |
parentProject: parentProject, | ||
mavenProject: mavenProject, | ||
} | ||
detectSpringApplicationName(azdProject, &springBootProject) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you please create another PR to merge There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated in this PR #63 |
||
detectDatabases(azdProject, &springBootProject) | ||
detectServiceBus(azdProject, &springBootProject) | ||
detectEventHubs(azdProject, &springBootProject) | ||
|
@@ -102,6 +103,13 @@ func detectAzureDependenciesByAnalyzingSpringBootProject( | |
detectSpringCloudConfig(azdProject, &springBootProject) | ||
} | ||
|
||
func detectSpringApplicationName(azdProject *Project, springBootProject *SpringBootProject) { | ||
var targetSpringAppName = "spring.application.name" | ||
if appName, ok := springBootProject.applicationProperties[targetSpringAppName]; ok { | ||
azdProject.MetaData.Name = appName | ||
} | ||
} | ||
|
||
func detectDatabases(azdProject *Project, springBootProject *SpringBootProject) { | ||
databaseDepMap := map[DatabaseDep]struct{}{} | ||
for _, rule := range databaseDependencyRules { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit:
Name
->ApplicationName