70.17.2 通过Gradle使用Jetty 9.2

对于Gradle,你需要设置jetty.version属性,例如对于一个简单的webapp或service:

  1. ext['jetty.version'] = '9.2.17.v20160517'
  2. dependencies {
  3. compile ('org.springframework.boot:spring-boot-starter-web') {
  4. exclude group: 'org.springframework.boot', module: 'spring-boot-starter-tomcat'
  5. }
  6. compile ('org.springframework.boot:spring-boot-starter-jetty')
  7. }