This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 4784243e72f CAMEL-21517: Deprecate camel-google-pubsub-lite (#16458)
4784243e72f is described below
commit 4784243e72ff75ae56b2eaa8a21792cc14ad3a83
Author: Stanislav Deviatov <[email protected]>
AuthorDate: Thu Dec 5 16:38:25 2024 +0100
CAMEL-21517: Deprecate camel-google-pubsub-lite (#16458)
* CAMEL-21517: Deprecate camel-google-pubsub-lite
* CAMEL-21517: Autogenerated changes
* CAMEL-21517: Catalog updates
* CAMEL-21517: Adding info to the migration guide
---
.../org/apache/camel/catalog/components/google-pubsub-lite.json | 2 +-
components/camel-google/camel-google-pubsub-lite/pom.xml | 2 +-
.../camel/component/google/pubsublite/google-pubsub-lite.json | 2 +-
.../META-INF/services/org/apache/camel/component.properties | 2 +-
.../src/main/docs/google-pubsub-lite-component.adoc | 5 +++--
.../user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_10.adoc | 6 ++++++
.../org/apache/camel/builder/endpoint/StaticEndpointBuilders.java | 2 ++
.../endpoint/dsl/GooglePubsubLiteEndpointBuilderFactory.java | 3 +++
8 files changed, 18 insertions(+), 6 deletions(-)
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/google-pubsub-lite.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/google-pubsub-lite.json
index 9739b19ee89..73cc4986e05 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/google-pubsub-lite.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/google-pubsub-lite.json
@@ -4,7 +4,7 @@
"name": "google-pubsub-lite",
"title": "Google PubSub Lite",
"description": "Send and receive messages to\/from Google Cloud Platform
PubSub Lite Service.",
- "deprecated": false,
+ "deprecated": true,
"firstVersion": "4.6.0",
"label": "cloud,messaging",
"javaType":
"org.apache.camel.component.google.pubsublite.GooglePubsubLiteComponent",
diff --git a/components/camel-google/camel-google-pubsub-lite/pom.xml
b/components/camel-google/camel-google-pubsub-lite/pom.xml
index 35db2ac6591..bc623e8af7b 100644
--- a/components/camel-google/camel-google-pubsub-lite/pom.xml
+++ b/components/camel-google/camel-google-pubsub-lite/pom.xml
@@ -29,7 +29,7 @@
<artifactId>camel-google-pubsub-lite</artifactId>
<packaging>jar</packaging>
- <name>Camel :: Google :: PubSub Lite</name>
+ <name>Camel :: Google :: PubSub Lite (deprecated)</name>
<description>Camel Component for Google Cloud Platform PubSub
Lite</description>
<properties>
diff --git
a/components/camel-google/camel-google-pubsub-lite/src/generated/resources/META-INF/org/apache/camel/component/google/pubsublite/google-pubsub-lite.json
b/components/camel-google/camel-google-pubsub-lite/src/generated/resources/META-INF/org/apache/camel/component/google/pubsublite/google-pubsub-lite.json
index 9739b19ee89..73cc4986e05 100644
---
a/components/camel-google/camel-google-pubsub-lite/src/generated/resources/META-INF/org/apache/camel/component/google/pubsublite/google-pubsub-lite.json
+++
b/components/camel-google/camel-google-pubsub-lite/src/generated/resources/META-INF/org/apache/camel/component/google/pubsublite/google-pubsub-lite.json
@@ -4,7 +4,7 @@
"name": "google-pubsub-lite",
"title": "Google PubSub Lite",
"description": "Send and receive messages to\/from Google Cloud Platform
PubSub Lite Service.",
- "deprecated": false,
+ "deprecated": true,
"firstVersion": "4.6.0",
"label": "cloud,messaging",
"javaType":
"org.apache.camel.component.google.pubsublite.GooglePubsubLiteComponent",
diff --git
a/components/camel-google/camel-google-pubsub-lite/src/generated/resources/META-INF/services/org/apache/camel/component.properties
b/components/camel-google/camel-google-pubsub-lite/src/generated/resources/META-INF/services/org/apache/camel/component.properties
index 17551fe0648..44dd50f4427 100644
---
a/components/camel-google/camel-google-pubsub-lite/src/generated/resources/META-INF/services/org/apache/camel/component.properties
+++
b/components/camel-google/camel-google-pubsub-lite/src/generated/resources/META-INF/services/org/apache/camel/component.properties
@@ -3,5 +3,5 @@ components=google-pubsub-lite
groupId=org.apache.camel
artifactId=camel-google-pubsub-lite
version=4.10.0-SNAPSHOT
-projectName=Camel :: Google :: PubSub Lite
+projectName=Camel :: Google :: PubSub Lite (deprecated)
projectDescription=Camel Component for Google Cloud Platform PubSub Lite
diff --git
a/components/camel-google/camel-google-pubsub-lite/src/main/docs/google-pubsub-lite-component.adoc
b/components/camel-google/camel-google-pubsub-lite/src/main/docs/google-pubsub-lite-component.adoc
index 7ba0e8f9e14..0f1c42b1097 100644
---
a/components/camel-google/camel-google-pubsub-lite/src/main/docs/google-pubsub-lite-component.adoc
+++
b/components/camel-google/camel-google-pubsub-lite/src/main/docs/google-pubsub-lite-component.adoc
@@ -1,10 +1,11 @@
-= Google PubSub Lite Component
+= Google PubSub Lite Component (deprecated)
:doctitle: Google PubSub Lite
:shortname: google-pubsub-lite
:artifactid: camel-google-pubsub-lite
:description: Send and receive messages to/from Google Cloud Platform PubSub
Lite Service.
:since: 4.6
-:supportlevel: Stable
+:supportlevel: Stable-deprecated
+:deprecated: *deprecated*
:tabs-sync-option:
:component-header: Both producer and consumer are supported
//Manually maintained attributes
diff --git
a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_10.adoc
b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_10.adoc
index c344c574755..2ed9272c92c 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_10.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_10.adoc
@@ -18,3 +18,9 @@ The `camel-jgroups-cluster-service-starter` in Camel Spring
Boot has been remove
The camel-jbang commands for `camel-k` has been removed.
+
+=== camel-google-pubsub-lite
+
+The component `camel-google-pubsub-lite` has been deprecated following the
deprecation of the corresponding service by Google Cloud Platform.
+
+Google recommends migrating your Pub/Sub Lite service to either Google Cloud
Managed Service for Apache Kafka or Google Cloud Pub/Sub. Depending on your
choice, you should use `camel-kafka` or `camel-google-pubsub component`,
respectively.
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
index 39d056c380a..a2c25bf66fe 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
@@ -5530,6 +5530,7 @@ public class StaticEndpointBuilders {
* @param path projectId:location:destinationName
* @return the dsl builder
*/
+ @Deprecated
public static
GooglePubsubLiteEndpointBuilderFactory.GooglePubsubLiteEndpointBuilder
googlePubsubLite(String path) {
return googlePubsubLite("google-pubsub-lite", path);
}
@@ -5560,6 +5561,7 @@ public class StaticEndpointBuilders {
* @param path projectId:location:destinationName
* @return the dsl builder
*/
+ @Deprecated
public static
GooglePubsubLiteEndpointBuilderFactory.GooglePubsubLiteEndpointBuilder
googlePubsubLite(String componentName, String path) {
return
GooglePubsubLiteEndpointBuilderFactory.endpointBuilder(componentName, path);
}
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GooglePubsubLiteEndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GooglePubsubLiteEndpointBuilderFactory.java
index 448678bbeb0..fe6e15f7af0 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GooglePubsubLiteEndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GooglePubsubLiteEndpointBuilderFactory.java
@@ -550,6 +550,7 @@ public interface GooglePubsubLiteEndpointBuilderFactory {
*
* @return the dsl builder for the headers' name.
*/
+ @Deprecated
default GooglePubsubLiteHeaderNameBuilder googlePubsubLite() {
return GooglePubsubLiteHeaderNameBuilder.INSTANCE;
}
@@ -578,6 +579,7 @@ public interface GooglePubsubLiteEndpointBuilderFactory {
* @param path projectId:location:destinationName
* @return the dsl builder
*/
+ @Deprecated
default GooglePubsubLiteEndpointBuilder googlePubsubLite(String path) {
return
GooglePubsubLiteEndpointBuilderFactory.endpointBuilder("google-pubsub-lite",
path);
}
@@ -608,6 +610,7 @@ public interface GooglePubsubLiteEndpointBuilderFactory {
* @param path projectId:location:destinationName
* @return the dsl builder
*/
+ @Deprecated
default GooglePubsubLiteEndpointBuilder googlePubsubLite(String
componentName, String path) {
return
GooglePubsubLiteEndpointBuilderFactory.endpointBuilder(componentName, path);
}