Are names like "desktopMain" or "jvmMain" fixed, o...
# compose
c
Are names like "desktopMain" or "jvmMain" fixed, or can I change them?
m
You can add directories to the source sets.
Copy code
kotlin {
    sourceSets.jvmMain {
        kotlin.srcDir("myOtherDir")
    }
}
This will make both
jvmMain
and
myOtherDir
be places where the source code for the JVM platform can be located.
You could also manually create the names of the source sets instead of using the default hiearchary setup, but I think that would create a lot of confusion.
e
I believe you can set the name of the target, e.g.
jvm("desktop")
and then the source that is created will be
desktopMain
instead of
jvmMain
.
1