gradle-springboot

springboot use jetty instead of tomcat:

configurations {
compile.exclude module: 'spring-boot-starter-tomcat'
}

dependencies {
compile("org.springframework.boot:spring-boot-starter-web")
compile("org.springframework.boot:spring-boot-starter-jetty")
}

generate deployable war for jetty:

build.gradle

apply plugin: 'war'

WarApplication.java

import org.springframework.boot.web.support.SpringBootServletInitializer;
@SpringBootApplication
public class WarApplication extends SpringBootServletInitializer {
public static void main(String[] args) {
SpringApplication.run(WarApplication.class, args);
}

}