Julian Ooi
Julian Ooi

Reputation: 298

Grails 3 does not have wrapper?

Does Grails 3.0.x no longer have the ability to create wrappers anymore?

The documentation doesn't seem to have the Grails wrapper section anymore.

Is there an alternative way which we can use the gradle wrapper to execute grails commands such as create-controller?

Upvotes: 7

Views: 1176

Answers (2)

jerryb
jerryb

Reputation: 1641

The Grails wrapper is back as of Grails 3.2.3: http://docs.grails.org/3.2.x/guide/introduction.html#whatsNewGrailsWrapper

I have an app created with Grails 3.1.x, then upgraded to Grails 3.2.6, but the files such as 'grailsw' did not appear in my project root, and I'm not sure how to get them added via some command in the project.

When I create a new app using Grails 3.2.6, the new files are in the project root (grailsw, grailsw.bat, grails-wrapper.jar). I assume they can be copied over to an app like mine: a quick test of this worked for me.

Upvotes: 0

Jeff Scott Brown
Jeff Scott Brown

Reputation: 27200

Does Grails 3.0.x no longer have the ability to create wrappers anymore?

No.

Is there an alternative way which we can use the gradle wrapper to execute grails commands such as create-controller?

Not for commands like create-controller, no.

We may re-introduce grailsw. File a feature request at https://github.com/grails/grails-core/issues if you would like to track that.

Upvotes: 2

Related Questions