ktorio / ktor-init-tools

ktor project generator web page and IDEA plugin

Home Page:https://start.ktor.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow to generate the common directory layout

forseti opened this issue · comments

Hi there,

Is there a way we can generate the common directory layout? (eg: src/main/kotlin, src/main/resources, src/test/kotlin, src/test/resources)

Maybe using checkbox? [x] Use standard/maven directory layout

Thanks!!

I did not see such a checkbox so far. What I did was this:
In the build.gradle.kts (generated by the ktor plugin in intellj) I changed sourceSets to this:

kotlin.sourceSets["main"].kotlin.srcDirs("src/main/kotlin")
kotlin.sourceSets["test"].kotlin.srcDirs("src/test/kotlin")

sourceSets["main"].resources.srcDirs("src/main/resources")
sourceSets["test"].resources.srcDirs("src/test/resources")