https://kotlinlang.org logo
#ktor
Title
# ktor
d

Dominik wuttke

08/01/2020, 6:31 PM
Is it possible to have modules in a different sourcefolder than the starting engine? When i set a 2nd sourcefolder in the projectsettings and add a module there I can't add this module to the config. It can't find the fully qualified name, but when I place the same module in the same sourcefolder as the engine starting module it works without a problem. Is there a way to add module from different sourcefolders? The idea behind this is to create small modules which can be switched in and out of a greater environment and having one mainmodule which installs the necessary features.
j

Jorge R

08/01/2020, 7:02 PM
Does the starting engine module has a dependency to the second sourceset? Maybe you are missing the module dependency?
d

Dominik wuttke

08/01/2020, 7:15 PM
This picture describes my problem. I got two source sets and Coremodule has the main function. The other one is just a module which i want to load. The way i load them in the config file works, when i move the 2nd module to the source set of Coremodule, but I want to load modules from different sourcesets. Is there any way to it?
j

Jorge R

08/01/2020, 8:49 PM
Uh no idea, never faced this before... Sorry