Per the documentation, I added the following code to my build.gradle file for a project:
task buildWar(type: CubaWarBuilding) {
coreContextXmlPath = 'modules/core/web/META-INF/context.xml'
webXmlPath = 'modules/web/web/WEB-INF/web.xml'
appProperties = ['cuba.automaticDatabaseUpdate':'true' ]
includeContextXml = true
includeJdbcDriver = true
appHome = './schweitzer'
singleWar = false
}
I then changed into my project directory and did this:
$ gradle buildWar
FAILURE: Build failed with an exception.
* What went wrong:
org.gradle.api.internal.MissingMethodException: Could not find method mustRunAfter() for arguments [[task ‘:schweitzer-core:deploy’, task ‘:schweitzer-web:deploy’]] on task ‘:start’.
> Could not find method mustRunAfter() for arguments [[task ‘:schweitzer-core:deploy’, task ‘:schweitzer-web:deploy’]] on task ‘:start’.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Where did I go wrong?