```kotlin { ... configAsKobwebApplication(...
# kobweb
c
Copy code
kotlin {
    ...
    configAsKobwebApplication("myapp", includeServer = true)

    sourceSets {
        ...
        jvmMain.dependencies {
            compileOnly(libs.kobweb.api)
        }
    }
}
What's the process for adding a BE jvm target? I made these suggested changes in the site/build.gradle.kts configuration - yet no source sets are generated for jvmMain after syncing & running kobweb again. Am I missing something?
d
This looks correct! Try running
kobweb create examples/todo
and see if that works for you if you open it up
c
Thanks - no issues starting from
examples/todo
. Just curious if the build script is meant to add the jvm sources when starting from the default project?
d
Ah no, you have to add them yourself
I think if you use
kobweb create app/empty
it will put a file stub in for you so that folders will get created
It's been a while so don't quote me on that
But once you've synced after adding includeServer = true, if you right click on the
src
folder and choose Create Directory, it should include an option for jvmMain
👍 1
c
Gotcha - makes sense!
d
Awesome! Good luck on your server. Let me know if you have any questions.