bmuschko / gradle-cargo-plugin

Gradle plugin that provides deployment capabilities to local and remote containers via Cargo
Apache License 2.0
258 stars 63 forks source link

How to build the war automatically before deployment? #163

Closed perqin closed 7 years ago

perqin commented 7 years ago

If executing task "cargoRunLocal" without running task "build", the deployment fails, complaining for not finding war file. So how to build automatically before deployment? Should I use "dependsOn", or are there any configurations for it?

bmuschko commented 7 years ago

Yes, correct. The reason there's not an automatic task dependency is that you can deploy other artifacts not necessarily created by the project. In fact the FAQ does make the exact statement about your question.