ktor-init-tools icon indicating copy to clipboard operation
ktor-init-tools copied to clipboard

Allow to generate the common directory layout

Open forseti opened this issue 6 years ago • 1 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!!

forseti avatar Oct 14 '18 07:10 forseti

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")

bladnor avatar Mar 05 '19 22:03 bladnor