I use gradle to start a javaweb project.but when I run "jettyRun" in Eclipse,the progress bar is stop.it seems that the program is blocking.

enter image description here

build.gradle

apply plugin:'java'
apply plugin:'war'
apply plugin:'jetty'

dependencies {
    providedCompile group: 'javax.servlet', name: 'javax.servlet-api', version: '3.1.0'
    compile group: 'javax.servlet.jsp.jstl', name: 'jstl', version: '1.2'
    compile group: 'com.alibaba', name: 'fastjson', version: '1.2.58'

}
jettyRun{
 httpPort = 8888
 contextPath = 'bdfy'
}
repositories {
    jcenter()
}
allprojects {
   sourceCompatibility = 1.8
   targetCompatibility = 1.8
}

0 Answers