Slackbot
08/11/2023, 9:00 AMAdam
08/11/2023, 9:46 AMAdam
08/11/2023, 9:49 AM:b:runIvan CLOVIS Canet
08/11/2023, 11:59 AMdoes the HTTP service have a health endpointI can add a
/ping endpoint easily, if that's what you mean.Ivan CLOVIS Canet
08/11/2023, 12:32 PMAdam
08/12/2023, 10:13 AMval webServiceRestartDate: Provider<String>
It doesn't matter if it's String or LocalDateTime - all that matters is that at some point it will change when the server restarts and it's registered as an input for :subproject-b:run.
And then that provider can be registered as an input for task :subproject-a:run, so when you run ./gradlew run in continuous mode then if you edit files in subproject-b this will trigger a server restart, and then the ValueSource will change, and then Gradle will re-run :subproject-b:runAdam
08/12/2023, 10:13 AMIvan CLOVIS Canet
09/01/2023, 8:30 AMExec tasks never finish, so it'll never notice that the ValueSource has changedAdam
09/01/2023, 11:09 AMIvan CLOVIS Canet
09/01/2023, 11:22 AMAdam
09/01/2023, 11:23 AMAdam
09/01/2023, 11:24 AMAdam
09/01/2023, 11:28 AM:a and :b. Does :a use the Application plugin to create a zip with an executable script?Ivan CLOVIS Canet
09/01/2023, 11:28 AMAdam
09/01/2023, 11:33 AM./gradlew :b:run --continuous, just so long as if you made any changes to any files in :a then :b:run would restart?Adam
09/01/2023, 11:34 AM:a and :b were Java projects, and you just had runtimeOnly(project(":a")) in project :b - because that would trigger a recompile of :b?Ivan CLOVIS Canet
09/01/2023, 12:20 PM:b:run ends. If I stopped the server myself, Gradle would notice the inputs have changed, and restart it, but as long as I don't stop it myself nothing happens.Adam
09/01/2023, 12:39 PM--continuous then Gradle would always check input files, not just when a task ends?Ivan CLOVIS Canet
09/01/2023, 12:39 PMIvan CLOVIS Canet
09/01/2023, 12:40 PMAdam
09/01/2023, 12:47 PMjsBrowserDevelopmentRun (or whatever the name is), and if I edit files in another subproject (that's a dependency) it will restart the task - is that different to what you're doing?Ivan CLOVIS Canet
09/01/2023, 12:52 PMjsBrowserDevelopmentRun is a weird task because it does, indeed, notice the continuous rebuild and somehow restart itself. From what I've read from other people, the Kotlin JS plugin does very strange things to make it work, but I don't really understand whatAdam
09/01/2023, 12:52 PM--continuous is with KMP JS