Gradle multi module / Spring

Hi How can I set up my gradle multi module project with Spring? my architecture looks like that (picture 1)
And I would like to put all my view/component things in my panel submodule.
But should I import this project inside my RestAPI that contains the SpringBootApplication and do I have to add the vaadin gradle plugin in restapi and panel as well?

(do you have any examples)

(if possible can I import panel inside restapi or create a frontend app independent from spring directly, I mean I don’t want to find any panel thing related in restapi)

Problem solved!