Quantcast
Channel: Gradle Forums - Latest posts
Viewing all articles
Browse latest Browse all 20478

The Gradle™ Way to include javaScript client projects in JVM apps

$
0
0

I’m just learning how to use Kotlin/JS in a Kotlin JVM-backed Spring Boot project. This project has two subprojects, client (Multiplatform/Js), and webapp (JVM).

For reference, here is what I threw together tonight: https://github.com/tristanjuricek/device-analytics

Right now, if I build the Kotlin/JS project, I can copy the built “browser distribution” from client/build/distributions/client.js (and .map file) to webapp/src/main/resources/public and reference the build. This works fine, and I can do something funky like have that automatically update, I guess. But it doesn’t feel very “Gradle-y”.

What I’m wondering is how other projects have approached this sort of thing in the past.

I realize I may end up switching the webapp to a Multiplatform-style build, which may have this as a concept … somewhere. But I’m wondering, if this wasn’t a fancy Kotlin multiplatform build, say, the client was some javaScript-based system, what’s the approaches people have used that works well here?


Viewing all articles
Browse latest Browse all 20478

Latest Images

Trending Articles



Latest Images