API / Apache Grails Interview questions
What is the Grails Wrapper (grailsw)?
The Grails Wrapper is a small (about 25KB) distribution — a grailsw shell script, a grailsw.bat batch script, and a small jar — that manages exactly which Grails CLI version an application builds and runs with, the same role the Gradle Wrapper plays for Gradle.
Available starting with version 7.0.0-M4 and included automatically in projects generated by Grails Forge, it removes the need to have a specific Grails CLI version pre-installed globally on a machine: running ./grailsw in a project directory downloads and uses the exact CLI version that project's configuration specifies, guaranteeing every developer (and every CI server) building that project uses an identical toolchain version.
This solves the classic "works on my machine" class of problem where two developers with different globally-installed CLI versions get subtly different build behavior — with the wrapper, the CLI version becomes part of the project itself rather than a fact about whoever's laptop happens to be running the build.
More Related questions...