varabyte / kobweb

A modern framework for full stack web apps in Kotlin, built upon Compose HTML
https://kobweb.varabyte.com
Apache License 2.0
1.46k stars 65 forks source link

Get live reloading to work when changing the build.gradle file #109

Closed bitspittle closed 2 years ago

bitspittle commented 2 years ago

Currently, live reloading works great if you modify source in your project. But tweak your build.gradle file, which itself may inluence how code gets generated? No luck -- you need to "Q" the server and rerun kobweb.

Most users won't be using these advanced features for a while or too often, so it's not critical to get this working ASAP, but probably sooner than later. I'll mark this as a 1.1 feature for now but may still try to get it done for 1.0.

bitspittle commented 2 years ago

It's certainly worth investigating -- it may be as easy as changing the list of @Input files to the genSite task to include build.gradle[.kts] files.

bitspittle commented 2 years ago

I ended up doing this a few days ago.