https://kotlinlang.org logo
#getting-started
Title
# getting-started
r

Roger Gilliar

02/14/2021, 7:47 PM
Hi. I currently have an existing ktor project that I wan't to split in one main project and 3 modules. I tried to add source sets to the gradle build and tried to follow different tutorials from around the web but none worked for me. What I primarily want is to have different Kotlin modules that only publish their public API's and that those public API's can be consumed by the main program. Something like a maven setup that supports Java modules.
j

jbnizet

02/14/2021, 8:14 PM
You shouldn’t create other sourceSets. You should create a multi-project build, where each of your “modules” is a gradle project. See https://docs.gradle.org/current/userguide/multi_project_builds.html
👀 1
3 Views