Skip to content

Commit 6b056bc

Browse files
authored
chore: bump project to 16.0 (#475)
Also updates to Vaadin 25.0 and JakartaEE 11
1 parent 42a38e8 commit 6b056bc

File tree

24 files changed

+83
-81
lines changed

24 files changed

+83
-81
lines changed

README.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ This is the official CDI integration for [Vaadin Flow](https://github.com/vaadin
77

88
This branch is compatible with upcoming Vaadin platform versions. See other branches for other Vaadin versions:
99

10+
* 16.0 for Vaadin 25.0
1011
* 15.2 for Vaadin 24.8
1112
* 15.1 for Vaadin 24.4
1213
* 15.0 for Vaadin 24
@@ -18,14 +19,14 @@ This branch is compatible with upcoming Vaadin platform versions. See other bran
1819
* 2.0 for Vaadin Framework 8.0...8.1 versions
1920
* 1.0 for Vaadin Framework 7 versions
2021

21-
## Using with Vaadin 10
22+
## Using with Vaadin
2223

23-
To use CDI with Vaadin 10, you need to add the following dependency to your pom.xml:
24+
To use CDI with Vaadin, you need to add the following dependency to your pom.xml:
2425
```xml
2526
<dependency>
2627
<groupdId>com.vaadin</groupId>
2728
<artifactId>vaadin-cdi</artifactId>
28-
<version>15.1.0</version> <!-- Or the LATEST version -->
29+
<version>15.2.0</version> <!-- Or the LATEST version -->
2930
</dependency>
3031
```
3132

@@ -56,14 +57,10 @@ Execute `mvn -pl vaadin-cdi-itest -Ptomee verify` in the root directory to run i
5657

5758
Test can be executed against the following containers, activating the specific profile:
5859

59-
* Wildfly Jakarta EE 9: `-Pwidfly`
60-
* Wildfly Jakarta EE 10: `-Pwidfly,jakartaee-10`
61-
* OpenLiberty Jakarta EE 9: `-Pliberty`
62-
* OpenLiberty Jakarta EE 10: `-Pliberty,jakartaee-10`
60+
* Wildfly Jakarta EE 10: `-Pwidfly`
61+
* OpenLiberty Jakarta EE 10: `-Pliberty`
6362
* Payara Jakarta EE 10: `-Ppayara`
64-
(Payara does not support Jakarta EE 9)
65-
* TomEE Jakarta EE 9: `-Ptomee`
66-
(TomEE does not yet support Jakarta EE 10)
63+
* TomEE Jakarta EE 10: `-Ptomee`
6764

6865
## Issue tracking
6966

pom.xml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</parent>
1111

1212
<artifactId>vaadin-cdi-parent</artifactId>
13-
<version>15.2-SNAPSHOT</version>
13+
<version>16.0-SNAPSHOT</version>
1414
<packaging>pom</packaging>
1515

1616
<name>vaadin-cdi-parent</name>
@@ -46,20 +46,20 @@
4646
<maven.javadoc.version>3.11.2</maven.javadoc.version>
4747
<driver.binary.downloader.maven.plugin.version>1.0.18</driver.binary.downloader.maven.plugin.version>
4848

49-
<vaadin.flow.version>24.8-SNAPSHOT</vaadin.flow.version>
49+
<vaadin.flow.version>25.0-SNAPSHOT</vaadin.flow.version>
5050
<slf4j.version>2.0.17</slf4j.version>
51-
<weld.version>5.1.5.Final</weld.version>
52-
<arquillian.version>1.9.4.Final</arquillian.version>
51+
<weld.version>6.0.3.Final</weld.version>
52+
<arquillian.version>1.9.5.Final</arquillian.version>
5353
<shrinkwrap.resolver.version>3.3.4</shrinkwrap.resolver.version>
5454
<shrinkwrap.descriptors.version>2.0.0</shrinkwrap.descriptors.version>
55-
<jakarta.enterprise.concurrent.api.version>3.0.4</jakarta.enterprise.concurrent.api.version>
56-
<jakarta.servlet.api.version>6.0.0</jakarta.servlet.api.version>
57-
<jakarta.enterprise.cdi.api.version>4.0.1</jakarta.enterprise.cdi.api.version>
58-
<jakarta.annotation.api.version>2.1.1</jakarta.annotation.api.version>
55+
<jakarta.enterprise.concurrent.api.version>3.1.1</jakarta.enterprise.concurrent.api.version>
56+
<jakarta.servlet.api.version>6.1.0</jakarta.servlet.api.version>
57+
<jakarta.enterprise.cdi.api.version>4.1.0</jakarta.enterprise.cdi.api.version>
58+
<jakarta.annotation.api.version>3.0.0</jakarta.annotation.api.version>
5959
<junit.version>4.13.2</junit.version>
60-
<junit5.version>5.9.1</junit5.version>
61-
<mockito.version>5.17.0</mockito.version>
62-
<weld.junit.version>4.0.0.Final</weld.junit.version>
60+
<junit5.version>5.12.2</junit5.version>
61+
<mockito.version>5.18.0</mockito.version>
62+
<weld.junit.version>5.0.1.Final</weld.junit.version>
6363

6464
</properties>
6565

vaadin-cdi-itest/pom.xml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.vaadin</groupId>
77
<artifactId>vaadin-cdi-parent</artifactId>
8-
<version>15.2-SNAPSHOT</version>
8+
<version>16.0-SNAPSHOT</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

@@ -15,11 +15,12 @@
1515
<maven.deploy.skip>true</maven.deploy.skip>
1616
<surefire.groups></surefire.groups>
1717
<surefire.excludedGroups>com.vaadin.cdi.itest.SlowTests</surefire.excludedGroups>
18-
<apache-tomee.version>10.0.1</apache-tomee.version>
19-
<wildfly.version>30.0.0.Final</wildfly.version>
20-
<openliberty.version>23.0.0.10</openliberty.version>
18+
<apache-tomee.version>10.1.0</apache-tomee.version>
19+
<wildfly.version>36.0.1.Final</wildfly.version>
20+
<openliberty.version>25.0.0.6</openliberty.version>
2121
<openliberty.template>jakartaee10</openliberty.template>
2222
<openliberty.runtimeArtifactGroupId>io.openliberty</openliberty.runtimeArtifactGroupId>
23+
<maven-dependency-plugin.version>3.8.1</maven-dependency-plugin.version>
2324
</properties>
2425

2526
<pluginRepositories>
@@ -128,6 +129,7 @@
128129
-->
129130
<groupId>org.apache.maven.plugins</groupId>
130131
<artifactId>maven-help-plugin</artifactId>
132+
<version>3.5.1</version>
131133
<configuration>
132134
<output>${project.build.directory}/effective-pom.xml</output>
133135
</configuration>
@@ -197,6 +199,7 @@
197199
<plugin>
198200
<groupId>org.apache.maven.plugins</groupId>
199201
<artifactId>maven-dependency-plugin</artifactId>
202+
<version>${maven-dependency-plugin.version}</version>
200203
<executions>
201204
<execution>
202205
<id>unpack</id>
@@ -256,6 +259,7 @@
256259
<plugin>
257260
<groupId>org.apache.maven.plugins</groupId>
258261
<artifactId>maven-dependency-plugin</artifactId>
262+
<version>${maven-dependency-plugin.version}</version>
259263
<executions>
260264
<execution>
261265
<id>unpack</id>
@@ -268,7 +272,7 @@
268272
<artifactItem>
269273
<groupId>fish.payara.distributions</groupId>
270274
<artifactId>payara</artifactId>
271-
<version>6.2023.10</version>
275+
<version>6.2025.6</version>
272276
<type>zip</type>
273277
<overWrite>false</overWrite>
274278
<outputDirectory>target</outputDirectory>
@@ -312,7 +316,7 @@
312316
<plugin>
313317
<groupId>io.openliberty.tools</groupId>
314318
<artifactId>liberty-maven-plugin</artifactId>
315-
<version>3.11.3</version>
319+
<version>3.11.4</version>
316320
<executions>
317321
<execution>
318322
<id>create-server</id>

vaadin-cdi-itest/src/main/java/com/vaadin/cdi/itest/invaliddeployment/NormalScopedLabel.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
package com.vaadin.cdi.itest.invaliddeployment;
1818

1919
import com.vaadin.cdi.annotation.NormalUIScoped;
20-
import com.vaadin.flow.component.html.Label;
20+
import com.vaadin.flow.component.html.NativeLabel;
2121

2222
@NormalUIScoped
23-
public class NormalScopedLabel extends Label {
23+
public class NormalScopedLabel extends NativeLabel {
2424
}

vaadin-cdi-itest/src/main/java/com/vaadin/cdi/itest/push/PushComponent.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
import com.vaadin.cdi.util.ContextUtils;
3535
import com.vaadin.flow.component.UI;
3636
import com.vaadin.flow.component.html.Div;
37-
import com.vaadin.flow.component.html.Label;
37+
import com.vaadin.flow.component.html.NativeLabel;
3838
import com.vaadin.flow.component.html.NativeButton;
3939

4040
@CdiComponent
@@ -85,9 +85,9 @@ private void print() {
8585
}
8686

8787
private void printContextIsActive(Class<? extends Annotation> scope) {
88-
Label label = new Label(ContextUtils.isContextActive(scope) + "");
88+
NativeLabel label = new NativeLabel(ContextUtils.isContextActive(scope) + "");
8989
label.setId(scope.getName());
90-
add(new Div(new Label(scope.getSimpleName() + ": "), label));
90+
add(new Div(new NativeLabel(scope.getSimpleName() + ": "), label));
9191
}
9292

9393
@PostConstruct

vaadin-cdi-itest/src/main/java/com/vaadin/cdi/itest/routecontext/DetailApartView.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import com.vaadin.cdi.annotation.RouteScopeOwner;
2424
import com.vaadin.cdi.annotation.RouteScoped;
2525
import com.vaadin.flow.component.html.Div;
26-
import com.vaadin.flow.component.html.Label;
26+
import com.vaadin.flow.component.html.NativeLabel;
2727
import com.vaadin.flow.router.AfterNavigationEvent;
2828
import com.vaadin.flow.router.AfterNavigationObserver;
2929
import com.vaadin.flow.router.Route;
@@ -40,11 +40,11 @@ public class DetailApartView extends AbstractCountedView implements AfterNavigat
4040
@Inject
4141
@RouteScopeOwner(DetailApartView.class)
4242
private ApartBean apartBean;
43-
private Label apartLabel;
43+
private NativeLabel apartLabel;
4444

4545
@PostConstruct
4646
private void init() {
47-
apartLabel = new Label();
47+
apartLabel = new NativeLabel();
4848
apartLabel.setId(BEAN_LABEL);
4949
apartBean.setData("APART");
5050
add(

vaadin-cdi-itest/src/main/java/com/vaadin/cdi/itest/routecontext/DetailAssignedView.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import com.vaadin.cdi.annotation.RouteScopeOwner;
2424
import com.vaadin.cdi.annotation.RouteScoped;
2525
import com.vaadin.flow.component.html.Div;
26-
import com.vaadin.flow.component.html.Label;
26+
import com.vaadin.flow.component.html.NativeLabel;
2727
import com.vaadin.flow.router.AfterNavigationEvent;
2828
import com.vaadin.flow.router.AfterNavigationObserver;
2929
import com.vaadin.flow.router.Route;
@@ -41,11 +41,11 @@ public class DetailAssignedView extends AbstractCountedView implements AfterNavi
4141
@Inject
4242
@RouteScopeOwner(MasterView.class)
4343
private AssignedBean assignedBean;
44-
private Label assignedLabel;
44+
private NativeLabel assignedLabel;
4545

4646
@PostConstruct
4747
private void init() {
48-
assignedLabel = new Label();
48+
assignedLabel = new NativeLabel();
4949
assignedLabel.setId(BEAN_LABEL);
5050
assignedBean.setData("ASSIGNED");
5151
add(

vaadin-cdi-itest/src/main/java/com/vaadin/cdi/itest/routecontext/EventObserverLayout.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import com.vaadin.cdi.annotation.CdiComponent;
2424
import com.vaadin.cdi.annotation.RouteScoped;
2525
import com.vaadin.flow.component.html.Div;
26-
import com.vaadin.flow.component.html.Label;
26+
import com.vaadin.flow.component.html.NativeLabel;
2727
import com.vaadin.flow.component.html.Span;
2828
import com.vaadin.flow.router.RouterLayout;
2929

@@ -32,11 +32,11 @@
3232
public class EventObserverLayout extends Div implements RouterLayout {
3333

3434
public static final String EVENTS_COUNTER_LABEL = "eventsCounter";
35-
private final Label receivedEvents;
35+
private final NativeLabel receivedEvents;
3636
private int counter = 0;
3737

3838
public EventObserverLayout() {
39-
receivedEvents = new Label();
39+
receivedEvents = new NativeLabel();
4040
receivedEvents.setId(EVENTS_COUNTER_LABEL);
4141
add(receivedEvents);
4242
}

vaadin-cdi-itest/src/main/java/com/vaadin/cdi/itest/routecontext/EventView.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import com.vaadin.cdi.annotation.RouteScopeOwner;
2727
import com.vaadin.cdi.annotation.RouteScoped;
2828
import com.vaadin.flow.component.html.Div;
29-
import com.vaadin.flow.component.html.Label;
29+
import com.vaadin.flow.component.html.NativeLabel;
3030
import com.vaadin.flow.component.html.NativeButton;
3131
import com.vaadin.flow.router.Route;
3232

@@ -41,7 +41,7 @@ public class EventView extends Div {
4141
@RouteScoped
4242
@RouteScopeOwner(EventView.class)
4343
@CdiComponent
44-
public static class ObserverLabel extends Label {
44+
public static class ObserverLabel extends NativeLabel {
4545
private void onPrintEvent(@Observes PrintEvent printEvent) {
4646
setText(printEvent.getMessage());
4747
}
@@ -61,7 +61,7 @@ public String getMessage() {
6161

6262
@Inject
6363
@RouteScopeOwner(EventView.class)
64-
private Label label;
64+
private NativeLabel label;
6565
@Inject
6666
private Event<PrintEvent> printEventTrigger;
6767

vaadin-cdi-itest/src/main/java/com/vaadin/cdi/itest/routecontext/MainLayout.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
import com.vaadin.flow.component.AttachEvent;
1919
import com.vaadin.flow.component.html.Div;
20-
import com.vaadin.flow.component.html.Label;
20+
import com.vaadin.flow.component.html.NativeLabel;
2121
import com.vaadin.flow.router.RouterLayout;
2222
import com.vaadin.flow.router.RouterLink;
2323

@@ -30,7 +30,7 @@ public class MainLayout extends Div implements RouterLayout {
3030
public static final String PARENT_NO_OWNER = "parent-no-owner";
3131
public static final String CHILD_NO_OWNER = "child-no-owner";
3232

33-
private Label uiIdLabel;
33+
private NativeLabel uiIdLabel;
3434

3535
public MainLayout() {
3636
add(new RouterLink(PRESERVE, PreserveOnRefreshView.class),
@@ -45,7 +45,7 @@ protected void onAttach(AttachEvent attachEvent) {
4545
if (uiIdLabel != null) {
4646
remove(uiIdLabel);
4747
}
48-
uiIdLabel = new Label(attachEvent.getUI().getUIId() + "");
48+
uiIdLabel = new NativeLabel(attachEvent.getUI().getUIId() + "");
4949
uiIdLabel.setId(UIID);
5050
add(uiIdLabel);
5151
}

0 commit comments

Comments
 (0)