Skip to content

Commit

Permalink
fix: add VaadinSpringDataHelpers to shaded deps (#1269)
Browse files Browse the repository at this point in the history
Some Vaadin components like Grid and Combobox have methods
that refers to the VaadinSpringDataHelpers class from
vaadin-spring artifact, causing native build to fail because
the class cannot be found.
This change adds the missing class to the shaded deps in
order to fix the native build.

Fixes #1221
  • Loading branch information
mcollovati authored Feb 6, 2025
1 parent be97baf commit cf75e83
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
import com.vaadin.hilla.crud.filter.Filter;
import com.vaadin.hilla.endpointransfermapper.EndpointTransferMapper;
import com.vaadin.hilla.push.PushEndpoint;
import com.vaadin.hilla.signals.handler.SignalsHandler;
import io.quarkus.arc.deployment.ExcludedTypeBuildItem;
import io.quarkus.bootstrap.classloading.QuarkusClassLoader;
import io.quarkus.deployment.Capabilities;
Expand Down Expand Up @@ -231,6 +232,7 @@ void hillaNativeSupport(
classes.addAll(getAnnotatedClasses(index, DotName.createSimple(BrowserCallable.class)));
classes.addAll(getAnnotatedClasses(index, DotName.createSimple(Endpoint.class)));
classes.addAll(getAnnotatedClasses(index, DotName.createSimple(EndpointExposed.class)));
classes.add(index.getClassByName(SignalsHandler.class));
classes.add(index.getClassByName(PushEndpoint.class));
classes.add(index.getClassByName(Filter.class));
classes.add(index.getClassByName(Pageable.class));
Expand Down
13 changes: 13 additions & 0 deletions commons/hilla-shaded-deps/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@
<version>${vaadin.version}</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-spring</artifactId>
<version>${vaadin.version}</version>
<optional>true</optional>
</dependency>
</dependencies>

<build>
Expand Down Expand Up @@ -144,6 +150,12 @@
<include>org/springframework/data/util/LazyStreamable.class</include>
</includes>
</filter>
<filter>
<artifact>com.vaadin:vaadin-spring</artifact>
<includes>
<include>com/vaadin/flow/spring/data/VaadinSpringDataHelpers.class</include>
</includes>
</filter>
<filter>
<artifact>com.vaadin:vaadin-core-internal</artifact>
<includes>
Expand All @@ -166,6 +178,7 @@
<include>org.springframework.data:spring-data-commons</include>
<include>com.vaadin:vaadin-core-internal</include>
<include>com.vaadin:vaadin-internal</include>
<include>com.vaadin:vaadin-spring</include>
</includes>
</artifactSet>
</configuration>
Expand Down

0 comments on commit cf75e83

Please sign in to comment.