Skip to content

Gradle package lookup is not perfectly working #23727

@WilliamFreau

Description

@WilliamFreau

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

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    🔎 Investigation

    Status

    📥Inbox - needs triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions