java: Structurizr could not find components in an application using spring boot 2.0.0.M7

I am trying to document an application that uses spring boot version 2.0.0.M7. But The problem am having is that when i use “structurizr-spring” dependency to auto scan components it fails to locate them. I can see from my logs that when the component finder tries to find files that are specified (as packageToScan parameter) it goes through all the files existing in classpath including the jar file for the application.

My project structure looks like this. I have application package and architecture package ( structurizr) gradle projects in the same level and in architecture’s build.gradle i have added compile dependency to the application.

  • app

  • architecture

Here is code excerpt that shows how i am trying to find spring components

 ` ComponentFinder componentFinder = new ComponentFinder(
            webApplication, "com.mypackage.name",
            new SpringComponentFinderStrategy(
                    new ReferencedTypesSupportingTypesStrategy()
            )
    );

   componentFinder.findComponents();
 `

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 15 (5 by maintainers)

Most upvoted comments

Thanks, I’ll will! Give me a couple of minutes to clear some password and secrets