-2

Building a 24.4.4 Vaadin starter with Gradle and trying to run the spring boot script after running:

gradle installBootDist

You get the following error:

java.io.FileNotFoundException: class path resource [com/vaadin/flow/router/internal/ClientRoutesProvider.class] cannot be opened because it does not exist

What is the missing dependency for com/vaadin/flow/router/internal/ClientRoutesProvider?

Using:

  • Gradle 8.8
  • Java 21
  • Spring Boot 3.2.7
  • Vaadin 24.4.4

Update: I did find the missing dependency, vaadin-server. Maven dependency resolution does not match gradle's even with the equivalent config.

5
  • Please edit your question to include a minimal reproducible example so that readers can run your code to answer your question.
    – cfrick
    Commented Jul 8 at 8:24
  • That is not really possible as Vaadin apps require creating many things to run. If you want to run a Vaadin app just go to their website and go to the starter. You can easily create a small app and download and run it.
    – K. Taylor
    Commented Jul 11 at 13:55
  • Adding to the above comment, you would need to convert the starter project from maven to gradle.
    – K. Taylor
    Commented Jul 11 at 14:04
  • Of course it's possible. You do those steps from your comments, and push that as a repo on some free git-site. Since it's very likely, that the starter works, and you broke it with your changes, we can either waste the day away and guess, what might be the problem -- or you could provide the facts, that show the problem.
    – cfrick
    Commented Jul 11 at 14:15
  • Sorry but that is not correct. I already stated exactly how to create the situation, and if anyone at Vaadin was going to fix it, they would need to do exactly as I said. Its not my code that causing the problem. The starter creates apps that already have the problem. And the documentation for using gradle is incomplete and out of date, missing steps. That is something Vaadin needs to work on.
    – K. Taylor
    Commented Jul 16 at 18:23

0

Browse other questions tagged or ask your own question.