Description of the bug
I have migrate a project from Maven to Gradle for Business reason. And some of my Npm dependencies was missing.
| Build-System |
vaadin.allowed-packaged in application.properties |
vaadin.allowed-packaged in package.properties |
Dependency is found |
| Maven |
No information |
vaadin.allowed-packaged=de.f0rce |
Everything is working |
| Gradle |
No information |
vaadin.allowed-packaged=de.f0rce |
Everything is working |
| Maven |
vaadin.allowed-packaged=com.example |
vaadin.allowed-packaged=de.f0rce |
Everything is working |
| Gradle |
vaadin.allowed-packaged=com.example |
vaadin.allowed-packaged=de.f0rce |
de.f0rce Npm package is not present in package.json |
So a conflict appear in Gradle plugin. If the attribute vaadin.allowed-packages is specify in the application.properties then the lookup did not take care of the package.properties in found JAR
Feel free to ask more informations if needed
Expected behavior
The Gradle plugin had to be working the same way as the Maven plugin.
Find all required Node dependencies
Minimal reproducible example
https://github.com/WilliamFreau/Vaadin-GradleLookup-Problem
Load with maven or gradle
Start the ExampleApp wich display the AceComponent and a Div in the default View
Think to delete package.json and generated stuff between
Versions
- Vaadin / Flow version: 24.9.12 but I expected the same behaviour for Vaadin 25+
- Java version: 25 but not important
- OS version: W10 / W11 but not tested more
- Build-Tool: Gradle
Description of the bug
I have migrate a project from Maven to Gradle for Business reason. And some of my Npm dependencies was missing.
vaadin.allowed-packagedinapplication.propertiesvaadin.allowed-packagedinpackage.propertiesvaadin.allowed-packaged=de.f0rcevaadin.allowed-packaged=de.f0rcevaadin.allowed-packaged=com.examplevaadin.allowed-packaged=de.f0rcevaadin.allowed-packaged=com.examplevaadin.allowed-packaged=de.f0rcede.f0rceNpm package is not present in package.jsonSo a conflict appear in Gradle plugin. If the attribute
vaadin.allowed-packagesis specify in theapplication.propertiesthen the lookup did not take care of thepackage.propertiesin found JARFeel free to ask more informations if needed
Expected behavior
The Gradle plugin had to be working the same way as the Maven plugin.
Find all required Node dependencies
Minimal reproducible example
https://github.com/WilliamFreau/Vaadin-GradleLookup-Problem
Load with maven or gradle
Start the ExampleApp wich display the AceComponent and a Div in the default View
Think to delete package.json and generated stuff between
Versions