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?