Hi all,
I have a project setup with a:
- java project
- application plugin used
- docker plugin
- custom tasks around integration tests
where
- a task like
runDockerApplication
depends onstopDockerApplication
- a task like
testWithinDocker
depends onrunDockerApplication
too - the task
testWithinDocker
is finalizedBytestTearDown
** the tasktestTearDown
has a dependsOnstopDockerApplication
- the task
stopDockerApplication
has an explicitoutputs.upToDateWhen { false }
The problem:
running ./gradlew testWithinDocker
only executes stopDockerApplication
once at the beginning as it is the earliest, well resolved task dependency in the graph but doesn’t re-execute it by finaliziation.
Is there a way to solve this or did I missed or misunderstood s.th.?!
Thank you and with kind regards,
~Marcel
(P.S. last tested with gradle 3.5)
P.S: even some experiments with ```
testTearDown.doLast {
stopDockerApplication.execute()
}
doesn't help, seems to the manual task `.execute()` even runs though the dependency mechanism and is not executed at all