问题
Inside build.gradle file:
task updateJson(){
//updates a json file
}
task Conn(type: NodeTask, dependsOn: updateJson){
script = file("connect.js")
}
yarn_test.dependsOn Conn
Console Output:
:updateJson
:Conn
Before config
::
Connect.js has been executed. Your app is now listening to port 6062.
<===========--> 85% EXECUTING
> :Conn
After that, the yarn_test doesn't start.
The task Conn is used to establish a connection and it doesn't return any execution response/result. It only enables localhost 6062 port for listening messages.
Is there any way to move on to the yarn_test just after triggering Conn task and without waiting for its execution result/response?
来源:https://stackoverflow.com/questions/62304898/a-gradle-task-take-long-time-to-execute-and-doesnt-produce-any-response-i-want