1. ...
    2. apply plugin: 'war'
    3. war {
    4. version = '0.5.0'
    5. repositories {
    6. jcenter()
    7. maven { url "http://repo.spring.io/libs-snapshot" }
    8. }
    9. providedRuntime
    10. }
    11. dependencies {
    12. compile("org.springframework.boot:spring-boot-starter-web")
    13. providedRuntime("org.springframework.boot:spring-boot-starter-tomcat")
    14. }