-
Notifications
You must be signed in to change notification settings - Fork 207
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
Add Java analyzer #4422
Add Java analyzer #4422
Conversation
Support adding MySQL when run `azd init`
Fix typo by changing "DbMysql" to "DbMySql"
…or like this: "argetTypeNotSupported: Target resource type MICROSOFT.DBFORMYSQL/FLEXIBLESERVERS is not supported.".
2. Delete '1>&2' used for debug. 3. Add 'az tag create' to fix the problem about tag been deleted when creating service connector.
Use managed-identity instead of username and password
2. Update log about "failed to read spring application properties". 3. Fix bug about can not find frontend app and backend app at the same time. 4. Add service connector from aca to postgresql.
Use passwordless to connect to PostgreSQL in Azure Container Apps
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.
Thanks for doing this.
Leaving some small notes. I've made it to Maven projects and the existing services we support.
I'll discuss with you on Teams on how we can start splitting out the PR to land some changes.
} | ||
defer xmlFile.Close() | ||
|
||
bytes, err := ioutil.ReadAll(xmlFile) |
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.
I think the linter may catch this: ioutil.ReadAll
is deprecated, we now use os.ReadFile
. Once we do this, we can avoid os.Open
and file.Close()
entirely.
} | ||
|
||
func analyzeMavenProject(projectPath string) ([]mavenProject, error) { | ||
rootProject, _ := analyze(projectPath + "/pom.xml") |
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.
Use filepath.Join
so that os.Separator
is used -- /
on linux and \
on Windows.
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.
Applies elsewhere as well.
// if it has submodules | ||
if len(rootProject.Modules) > 0 { | ||
for _, m := range rootProject.Modules { | ||
subModule, _ := analyze(projectPath + "/" + m + "/pom.xml") |
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.
Do check and return err
if there was an error reading the file.
rules := []rule{ | ||
&ruleService{}, |
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.
I think we can replace these rules with switch
statements like Python, and I feel comfortable moving all the logic here into java.go
.
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.
Sure
@@ -123,6 +136,7 @@ resource app 'Microsoft.App/containerApps@2023-05-02-preview' = { | |||
allowedOrigins: union(allowedOrigins, [ | |||
// define additional allowed origins here | |||
]) | |||
allowedMethods: ['GET', 'PUT', 'POST', 'DELETE'] |
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.
Was this giving you trouble? I was under the impression that the default value is allowedMethods: [*]
, but if not, we can make that explicit. I'd prefer allowedMethods: [*]
over what we have currently.
Support both password and passwordless auth type for PostgreSQL and MySQL
Support monolithic web application with Database access - MongoDB - Password
Fix bug: Get auth type should only be required for MySQL and PostgreSQL
…erver.port" is set in application.properties.
Make sure app work well after deployed to ACA no matter what value "server.port" is set in application.properties
Implement feature: detect port in Dockerfile
Implement feature: detect redis by analyzing pom file
…ve just like spring-boot-starter-data-mongodb
Detect Mongo DB by dependency spring-boot-starter-data-mongodb-reactive just like spring-boot-starter-data-mongodb
…or yaml, properties)
Support all kinds of properties file like application(-profile).yaml(or yaml, properties)
VSCode Extension Installation Instructions
|
Superseded by #4473 |
Add the extensible Java analyzer for azd, to further understand a Java project.