Recently, I am playing Gradle, which is a similar tool as Maven. What I usual do is to depoly webiste into Tomcat. Refer this Deploy Website into Tomcat 7 with Maven. Here is my note to deploy website with Gradle.
dependencies { testCompile 'junit:junit:4.11' compile 'org.codehaus.groovy:groovy-all:2.3.9' compile 'com.google.guava:guava:18.0' true// many many more }
2. Then open a terminal, and type gradle deploy.
This will connection your server with SSH, and overwrite the previous war file, which is different from Maven, which use tomcat manager page to deploy war file.