Created this purely for my personal development environment, in which I have a headless machine that I access with a remote machine. The headless machine runs Gradle, Android Studio, etc. and the remote machine accesses these via Waypipe (which uses SSH internally).
The problem I wanted to solve was that while I could run Android Studio, which supports Wayland to some extent, with Waypipe, I couldn’t run the Compose applications I was working on, as Compose doesn’t support Wayland.
The solution I arrived at was a Gradle plugin which provides a task which builds the Compose projects as an uber jar, transfers that jar to the machine connected via SSH (my remote machine) using SCP or SSHFS, and runs the jar on the remote machine with ssh, displaying the output in Android Studio. This solution works surprisingly well and, other than the slowness, provides basically the same experience to just running Android Studio and the Compose project on the same local machine.