https://kotlinlang.org logo
z

zeugederunity

09/29/2020, 8:50 AM
Hello everyone, is it possible to have multiple JVM targets? Like for a Server-Backend and a Microservice? Edit after Jakub asked: The server is written with ktor and we want to Spark NLP for our new search feature. But i don't want to mix the code from the microservice with the server code.
k

kqr

09/29/2020, 8:56 AM
what's the diff?
z

zeugederunity

09/29/2020, 8:59 AM
We use ktor for our serverbackend and want to use Spark NLP for our new search feature. But i don't want to pack everything in one Jar-File.
And i think that you should allways separate two completely different applications. Otherwise it becomes messy. Same for our Java-Client. Right now the java client is in a separate project, but our migration goal is to get this one in out MP-PProject too.
j

Joffrey

09/29/2020, 11:54 AM
If you want 2 different jars because they don’t serve the same purpose, I think it is more about defining 2 different modules than defining 2 different targets in the same multiplatform module. You can combine multiple gradle modules, and some of them may be multiplatform, but I believe these are 2 separate things.
z

zeugederunity

09/29/2020, 1:33 PM
Hm, i think you are right, ill try it that way. Thanks
2 Views