You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update the Lyo version in your properties. Note that starting with version `7.0.0.Alpha4`, Eclipse Lyo introduced a **Bill of Materials (BOM)** to simplify dependency management and ensure version convergence across different Lyo artifacts:
65
+
63
66
```xml
64
67
<properties>
65
-
<lyo.version>7.0.0.Alpha3</lyo.version>
68
+
<lyo.version>7.0.0-Alpha.12</lyo.version> <!-- Use the latest available version -->
66
69
<!-- Other versions remain the same -->
67
70
<jersey.version>3.1.5</jersey.version>
68
71
</properties>
69
72
```
70
73
74
+
You can optionally manage Lyo dependencies via the new BOM in `<dependencyManagement>`:
75
+
76
+
```xml
77
+
<dependencyManagement>
78
+
<dependencies>
79
+
<dependency>
80
+
<groupId>org.eclipse.lyo</groupId>
81
+
<artifactId>lyo-bom</artifactId>
82
+
<version>${lyo.version}</version>
83
+
<type>pom</type>
84
+
<scope>import</scope>
85
+
</dependency>
86
+
</dependencies>
87
+
</dependencyManagement>
88
+
```
89
+
71
90
#### 2.2 Remove Deprecated Dependencies
72
91
If using the deprecated JSON4J provider:
73
92
@@ -82,6 +101,19 @@ If using the deprecated JSON4J provider:
82
101
-->
83
102
```
84
103
104
+
!!! note "Wink JSON4J Classes Usage"
105
+
If the project code (such as generated selection/creation dialogue methods) still imports and uses classes from `org.apache.wink.json4j.*` (like `JSONObject`, `JSONArray`, or `JSONException`), a direct dependency on Apache Wink JSON4J shall be added to the `pom.xml` to avoid compilation errors:
106
+
107
+
```xml
108
+
<dependency>
109
+
<groupId>org.apache.wink</groupId>
110
+
<artifactId>wink-json4j</artifactId>
111
+
<version>1.4</version>
112
+
</dependency>
113
+
```
114
+
115
+
The `Json4JProvidersRegistry` and `JsonHelper` imports and registrations shall also be removed from the JAX-RS Application registration logic, as these specific helpers were part of the removed `oslc4j-json4j-provider` wrapper.
0 commit comments