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

Grails Forge Produces Incorrect Command to Create Web Plugin #436

Open
ewcole opened this issue Nov 25, 2024 · 1 comment
Open

Grails Forge Produces Incorrect Command to Create Web Plugin #436

ewcole opened this issue Nov 25, 2024 · 1 comment

Comments

@ewcole
Copy link

ewcole commented Nov 25, 2024

Description

The Grails Forge produces the wrong command when asked to produce a web plugin

Task List

How to reproduce the problem:

  1. Go to https://start.grails.org

  2. Change the Application Type field to "Web Plugin"

  3. Click on Generate Project

  4. Select "Commands"

  5. It will produce the following text.
    grails create-web_plugin --servlet=tomcat --jdk=11 --gorm=hibernate --test=spock com.example.demo

  6. Copy the text

  7. Paste into the Windows command line.
    (J11)G:\g6> `grails create-web_plugin --servlet=tomcat --jdk=11 --gorm=hibernate --test=spock com.example.demo

    Unmatched arguments from index 0: 'create-web_plugin', '--servlet=tomcat', '--jdk=11', '--gorm=hibernate', '--test=spock', 'com.example.demo'
    Did you mean: grails create-web-plugin or grails create-plugin or grails create-webapp?

  8. If you edit the command and change create-web_plugin to create-web-plugin, it creates the application.
    | Application created at G:\g6\demo

Expected Behaviour

It should produce the following command:
grails create-web-plugin --servlet=tomcat --jdk=11 --gorm=hibernate --test=spock com.example.demo

Actual Behaviour

It produces an invalid command
grails create-web_plugin --servlet=tomcat --jdk=11 --gorm=hibernate --test=spock com.example.demo'

Environment Information

  • Operating System: Windows 10 (probably system independent)
  • Grails Version: 6.22
  • JDK Version: Java 17 and 11

Example Application

This GitHub repository.

@jeffscottbrown
Copy link
Member

FYI... Very similar to grails/grails-forge-ui#40.

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

No branches or pull requests

2 participants