Hi
I have a similar problem to the [TaskExecutionListener executing multiple times per task
my settings.gradle file looks like this
‘’’
rootProject.name = 'deathstar
include 'service', 'deploy', 'int-test'
‘’’
class TaskWatcher implements TaskExecutionListener {
@Override
void beforeExecute(final Task task) {
println "##[command] executing $task.name ..."
}
@Override
void afterExecute(final Task task, TaskState taskState) {
println "never finished"
}
}
In my plugin
project.gradle.taskGraph.addTaskExecutionListener new TaskWatcher()
When I run this I was expecting when a task in completed for a given sub-project I see my println messages however I see this
Parallel execution is an incubating feature.
:deploy:deployWriteDockerFile
:service:checkArguments
##[command] executing deployWriteDockerFile …
##[command] executing checkArguments …
##[command] executing deployWriteDockerFile …
##[command] executing checkArguments …
##[command] executing deployWriteDockerFile …
##[command] executing checkArguments …
config not specified. Use -Pc={Debug,Release} from command line, defaulting to Release
local docker dev image not specified. Use -Pr=local from command line, defaulting to remote repo
patch version (and full version not specified). Use -Ppv= from command line, or set the buildInfo.patchVersion in the build.gradle file. Defaulting to latest
never finished
never finished
never finished
:service:checkNodeSettings
##[command] executing checkNodeSettings …
##[command] executing checkNodeSettings …
##[command] executing checkNodeSettings …