Is there a good way to have one Gradle task depend...
# ktor
c
Is there a good way to have one Gradle task depend on another task that doesn’t finish? Use case: A Selenium integration test that relies on the localhost ktor server running. Currently I’m manually doing this as two separate invocations
./gradlew :serverApp:run &
./gradlew :integrationTestLib:check
It works, but it’s multiple steps. Also the Gradle cache doesn’t realize that changes to serverApp invalidate the cache for the tests, so I often have to do
--rerun-tasks
for the
integrationTestLib:check