How can I add another package for component scan?

Hello.
I am trying to write a library just using spring boot to just have to import a jar file for some services
I can import the jar in gradle no problem but I don’t know how to “add” this extra package.
image

when I add it… Jmix user repository cannot get injected.
Do I have to define all the packages in this annotation? If so what are they?

Hi Eduardo,

Include the base package of the application in the list of packages to scan:

@SpringBootApplication
@ComponentScan(basePackages = {"com.myother.package", "com.company.myapp"})
public class MyApplication {