CLOVIS
07/26/2023, 8:52 AMproject/
app/
build.gradle.kts
utils/
build.gradle.kts
The :app
project has the main
function and the Ktor Application instanciation.
We run the project with:
./gradlew :app:run & ./gradlew :app:jar --continuous
During debugging, we have a script that pings the /ping
route of the server continuously to force auto-reload (since it otherwise only reloads on the next received request).
We have noticed that:
• source code changes in the app
module triggers recompilation, and Ktor auto-reload
• source code changes in the utils
module triggers recompilation, but does not trigger Ktor auto-reload
• using build scans, we checked that editing utils
does trigger its own recompilation, as well as the recompilation of àpp
Looking at the documentation, it seems Ktor is only looking at the classes for the current module, not the dependencies. How can I add the other modules as watch points? They are not in the app/build
directory.e5l
07/27/2023, 9:39 AMAleksei Tirman [JB]
07/29/2023, 11:02 AMCLOVIS
07/29/2023, 11:26 AMCLOVIS
07/29/2023, 11:28 AM