-
Notifications
You must be signed in to change notification settings - Fork 274
feat(amazon q): adding support to accept java 17 projects #5018
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
Conversation
rli
left a comment
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.
is the idea supporting rewrites into modern syntax?
|
@rli idea is more so upgrading dependencies to the latest version, even if you're already using Java 17 |
|
Waiting to approve once we complete the 1) string updates and 2) E2E testing |
b25d6be to
7d01e52
Compare
| codemodernizer.notification.warn.invalid_project.description.reason.no_valid_files=None of your open modules are supported for code transformation with Amazon Q. A pom.xml is required for transformation. Amazon Q can upgrade Java 8, Java 11, and Java 17 projects built on Maven. | ||
| codemodernizer.notification.warn.invalid_project.description.reason.not_logged_in=Amazon Q cannot start the transformation as you are not logged in with Identity Center or Builder ID. Also ensure that you are not using IntelliJ version 232.8660.185 and that you are not developing on a remote host (uncommon). | ||
| codemodernizer.notification.warn.invalid_project.description.reason.remote_backend=None of your open modules are supported by Amazon Q Code Transformation. Currently, Amazon Q can only upgrade Java 8 or Java 11 projects built on Maven, and cannot upgrade projects running on a remote host. | ||
| codemodernizer.notification.warn.invalid_project.description.reason.remote_backend=None of your open modules are supported for code transformation with Amazon Q. Amazon Q can't transform projects running on a remote host. |
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 believe characters such as the single apostrophe need to be escaped with a \ otherwise they will not show up, you can test this to confirm, you'll probably see cant instead of can't without the \
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.
Looks like we use "cannot" so I can change to this
| `Welcome to Code Transformation! | ||
| I can help you upgrade your Java 8 and 11 codebases to Java 17. | ||
| I can help you upgrade your Java 8 and Java 11 codebases to Java 17, or upgrade Java 17 code with up to date libraries and other dependencies.. |
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.
Because of DMS work, I actually had to remove this sentence, so can you just make this Welcome to Code Transformation!
| { | ||
| command: '/transform', | ||
| description: 'Transform your Java 8 or 11 Maven project to Java 17', | ||
| description: 'Transform your Java 8, Java 11, or Java 17 Maven projects', |
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.
Same as below, can we make this Transform your Java project since that's what we're using for DMS
7d01e52 to
cc90325
Compare
| codemodernizer.chat.message.validation.error.no_pom=Sorry, I couldn't find a module that I can upgrade. I couldn't find a pom.xml file in any of your open projects. Currently, I can only upgrade Java 8 or Java 11 projects built on Maven. | ||
| codemodernizer.chat.message.validation.error.other=Sorry, I couldn't find a module that I can upgrade. Currently, I can only upgrade Java 8 or Java 11 projects built on Maven. If you have a Java 8 or Java 11 module in your workspace, you might need to configure your project so that I can find it. Go to File and choose Project Structure. In the Projects tab, set the correct project JDK and the correct language level. In the Modules tab, set the correct module JDK and language level. | ||
| codemodernizer.chat.message.validation.error.unsupported_java_version=Sorry, I couldn't find a module that I can upgrade. Currently, I can only upgrade Java 8 or Java 11 modules built on Maven. If you have a Java 8 or Java 11 module in your workspace, you might need to configure your project so that I can find it. Go to File and choose Project Structure. In the Projects tab, set the correct project JDK and the correct language level. In the Modules tab, set the correct module JDK and language level. | ||
| codemodernizer.chat.message.validation.error.no_pom=I couldn't find a module that I can upgrade. Your Java project must be built on Maven and contain a pom.xml file. For more information, see the Amazon Q documentation. |
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.
Typically when we say "Amazon Q documentation" we hyperlink to it, see line 634 above for example
| { | ||
| command: '/transform', | ||
| description: 'Transform your Java 8 or 11 Maven project to Java 17', | ||
| description: 'Transform your Java Project', |
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: lowercase p in project
cc90325 to
b2d93b4
Compare
b2d93b4 to
cdfdb84
Compare
* adding support to accept java 17 projects * confirmation of ui text received * fix minor text * fixing minor text comments * adding link to error message --------- Co-authored-by: David <[email protected]>
Types of changes
New Feature
Description
Enabling support for java 17 projects
License
I confirm that my contribution is made under the terms of the Apache 2.0 license.