How do I properly make it so it makes 2 JVM sourcesets with different dependencies?
c
How do I properly make it so it makes 2 JVM sourcesets with different dependencies?
o
you might need to do
by creating
instead..? not sure
c
When I do that it makes a very weird project structure and still doesn't let me use the Spigot nor the Waterfall dependency and relies on the Kotlin SDK rather than a Java JDK
Removing the jvm method calls before the sourcesets scope makes it less weird but still can't access the dependencies in it even though it looks right in Intellij and it uses Kotlin SDK still.
o
that looks right to me... what does your actual folder setup look like
c
message has been deleted
JavaPlugin is in the dependency but it's not resolving
o
even if you import it manually?
c
message has been deleted
Yeah
Shows up in external libraries section
o
wait, is that dependency even resolved? isn't paper in its own maven repo?
c
Paper is installed locally
o
ah, okay. I don't really know what's happening then, everything seems to be hooked up properly. I guess the bigger question is if gradle encounters an error building it vs. intellij
c
Lets see
message has been deleted
When calling the build task it doesn't even look for that sourceset
o
yea, I'm not too familiar with MPP -- since you really only have one platform (JVM), I would've gone with two projects, I feel that it is simpler to handle
c
Yeah, that's my old setup but I wanted to make a setup that uses sourcesets instead
message has been deleted
Oh
Huge, lets try it
message has been deleted
message has been deleted
Yeah, no luck unfortuantly, fixes the build task tho
Omgggg I did it
Basically you it adds the word
Main
for you, so I just needed to create a jvm sourceset called
spigot
and
bungee
Thank you for your help @octylFractal ❤️
o
ah, cool