I am trying to search help for a problem about Visual Studio Code (which use Buildship), Gradle and a software called Vaadin.
I have downloaded the example application for using Vaadin and Jetty from here: vaadin14-embedded-jetty-gradle
The application is a simple app which use Jetty launching it in embedded and configuring jetty to load the Vaadin Servlet.
The Vaadin servlet look in the classpath if there are some class annotated with the
@route annotation and add these found servlet too inside Jetty.
If you try to download the app and run it with gradle with
gradle appRun everything works fine, if I try to use the VSC debug feature with it’s
launch.json file and gradle integration based on BuildShip the annotated servlet couldn’t be found.
The suspect as indicated here: Vaadin Buildship problem is that in some way the directory
build\classes\java\main is not correctly included in the classpath.
Could some gradle and buildship expert help in some way?
Is there a way to add the directory in the classpath?