You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It will produce the following text. grails create-web_plugin --servlet=tomcat --jdk=11 --gorm=hibernate --test=spock com.example.demo
Copy the text
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?
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.
The text was updated successfully, but these errors were encountered:
Description
The Grails Forge produces the wrong command when asked to produce a web plugin
Task List
How to reproduce the problem:
Go to https://start.grails.org
Change the Application Type field to "Web Plugin"
Click on Generate Project
Select "Commands"
It will produce the following text.
grails create-web_plugin --servlet=tomcat --jdk=11 --gorm=hibernate --test=spock com.example.demo
Copy the text
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?
If you edit the command and change
create-web_plugin
tocreate-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
Example Application
This GitHub repository.
The text was updated successfully, but these errors were encountered: