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
runDockerApplicationdepends onstopDockerApplication - a task like
testWithinDockerdepends onrunDockerApplicationtoo - the task
testWithinDockeris finalizedBytestTearDown
** the tasktestTearDownhas a dependsOnstopDockerApplication - the task
stopDockerApplicationhas 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
