ktor-init-tools
ktor-init-tools copied to clipboard
Allow to generate the common directory layout
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")