Skip to content

Conversation

@ntarakad-aws
Copy link
Contributor

@ntarakad-aws ntarakad-aws commented Oct 25, 2024

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.

@ntarakad-aws ntarakad-aws self-assigned this Oct 25, 2024
@ntarakad-aws ntarakad-aws requested review from a team as code owners October 25, 2024 23:54
Copy link
Contributor

@rli rli left a 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?

@dhasani23
Copy link
Contributor

@rli idea is more so upgrading dependencies to the latest version, even if you're already using Java 17

@dhasani23
Copy link
Contributor

Waiting to approve once we complete the 1) string updates and 2) E2E testing

@ntarakad-aws ntarakad-aws requested a review from a team as a code owner November 3, 2024 01:49
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.
Copy link
Contributor

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 \

Copy link
Contributor Author

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..
Copy link
Contributor

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',
Copy link
Contributor

@dhasani23 dhasani23 Nov 13, 2024

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

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.
Copy link
Contributor

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',
Copy link
Contributor

@dhasani23 dhasani23 Nov 14, 2024

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

@manodnyab manodnyab merged commit e225cdc into aws:main Nov 15, 2024
12 of 13 checks passed
dhasani23 added a commit to ntarakad-aws/aws-toolkit-jetbrains that referenced this pull request Nov 18, 2024
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants