farm {
// ... properties
}
When you apply gretty plugin, it adds farm extension object to the current project.
You can (but you don’t have to) configure farm extension object in your gradle script:
farm {
// ... properties
}
Farm extension object corresponds to default farm.
Default farm defines set of farm tasks: farmRun, farmRunDebug, etc.
If you don’t specify any farm properties (or omit farm extension object altogether), farm tasks run with reasonable defaults.
Farm consists of two parts:
See also: Multiple web-apps.