Skip to content
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

Maven plugin: exposed the settings 'node.version' and 'node.download.… #8675

Merged
merged 1 commit into from
Jul 1, 2020
Merged

Conversation

mvysny
Copy link
Member

@mvysny mvysny commented Jul 1, 2020

…… (#8659)

  • Maven plugin: exposed the settings 'node.version' and 'node.download.root'

  • Use new URI() instead of URI.create(), to validate user input

  • Fixed NPE in BuildFrontendMojoTest

  • Refactoring: mojo initialization refactored to Maven convention

#8659)

* Maven plugin: exposed the settings 'node.version' and 'node.download.root'

* Use new URI() instead of URI.create(), to validate user input

* Fixed NPE in BuildFrontendMojoTest

* Refactoring: mojo initialization refactored to Maven convention
@mvysny mvysny requested a review from jm-ferreira July 1, 2020 14:06
* Vaadin-default node version - see {@link FrontendTools} for details.
*/
@Parameter(property = "node.version", defaultValue = FrontendTools.DEFAULT_NODE_VERSION)
protected String nodeVersion;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CRITICAL Move this variable to comply with Java Code Conventions. rule

@vaadin-bot
Copy link
Collaborator

SonarQube analysis reported 14 issues

  • CRITICAL 2 critical
  • MINOR 11 minor
  • INFO 1 info

Watch the comments in this conversation to review them.

Top 10 extra issues

Note: The following issues were found on lines that were not modified in the pull request. Because these issues can't be reported as line comments, they are summarized here:

  1. MINOR BuildFrontendMojo.java#L301: Remove this use of "SERVLET_PARAMETER_ENABLE_PNPM"; it is deprecated. rule
  2. MINOR BuildFrontendMojo.java#L302: Remove this use of "REQUIRE_HOME_NODE_EXECUTABLE"; it is deprecated. rule
  3. MINOR BuildFrontendMojo.java#L304: Remove this use of "SERVLET_PARAMETER_ENABLE_DEV_SERVER"; it is deprecated. rule
  4. MINOR BuildFrontendMojo.java#L324: Remove this use of "SERVLET_PARAMETER_COMPATIBILITY_MODE"; it is deprecated. rule
  5. MINOR BuildFrontendMojo.java#L325: Remove this use of "SERVLET_PARAMETER_COMPATIBILITY_MODE"; it is deprecated. rule
  6. MINOR FlowModeAbstractMojo.java#L67: Remove this use of "SERVLET_PARAMETER_ENABLE_PNPM"; it is deprecated. rule
  7. MINOR FlowModeAbstractMojo.java#L76: Remove this use of "REQUIRE_HOME_NODE_EXECUTABLE"; it is deprecated. rule
  8. MINOR PrepareFrontendMojo.java#L198: Remove this use of "SERVLET_PARAMETER_COMPATIBILITY_MODE"; it is deprecated. rule
  9. MINOR PrepareFrontendMojo.java#L199: Remove this use of "SERVLET_PARAMETER_PRODUCTION_MODE"; it is deprecated. rule
  10. MINOR PrepareFrontendMojo.java#L203: Remove this use of "SERVLET_PARAMETER_ENABLE_PNPM"; it is deprecated. rule

* Example: <code>"https://nodejs.org/dist/"</code>.
*/
@Parameter(property = "node.download.root", defaultValue = NodeInstaller.DEFAULT_NODEJS_DOWNLOAD_ROOT)
protected String nodeDownloadRoot;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CRITICAL Move this variable to comply with Java Code Conventions. rule

@mvysny mvysny merged commit f153321 into vaadin:2.3 Jul 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants