You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2020/10/28 07:56:38 UTC
[camel-kafka-connector-examples] 01/02: Exec Simple Producer: Added
license and formatting
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch fix-exec-ex
in repository https://gitbox.apache.org/repos/asf/camel-kafka-connector-examples.git
commit d64a66a507d5d201d6e5f9577c49d0818b5b4cd5
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Oct 28 08:54:42 2020 +0100
Exec Simple Producer: Added license and formatting
---
.../camel-kafka-exec-simple-producer/pom.xml | 35 +++++++++++-----------
.../camel/kafkaconnector/SimpleProducer.java | 16 ++++++++++
2 files changed, 34 insertions(+), 17 deletions(-)
diff --git a/exec/exec-sink/camel-kafka-exec-simple-producer/pom.xml b/exec/exec-sink/camel-kafka-exec-simple-producer/pom.xml
index 9f64f04..0cb7503 100644
--- a/exec/exec-sink/camel-kafka-exec-simple-producer/pom.xml
+++ b/exec/exec-sink/camel-kafka-exec-simple-producer/pom.xml
@@ -1,12 +1,13 @@
<?xml version="1.0"?>
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
- xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
- <groupId>org.apache.camel.kafkaconnector</groupId>
+ <groupId>org.apache.camel.kafkaconnector</groupId>
<artifactId>camel-kafka-exec-simple-producer</artifactId>
<name>Camel Kafka Exec Simple Producer</name>
- <version>0.0.1-SNAPSHOT</version>
+ <version>0.0.1-SNAPSHOT</version>
<dependencies>
<dependency>
@@ -24,11 +25,11 @@
<artifactId>jackson-databind</artifactId>
<version>2.11.3</version>
</dependency>
- <dependency>
- <groupId>log4j</groupId>
- <artifactId>log4j</artifactId>
- <version>1.2.17</version>
- </dependency>
+ <dependency>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ <version>1.2.17</version>
+ </dependency>
</dependencies>
<properties>
@@ -60,15 +61,15 @@
</arguments>
</configuration>
</plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>3.2</version>
- <configuration>
- <source>1.8</source>
- <target>1.8</target>
- </configuration>
- </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>3.2</version>
+ <configuration>
+ <source>1.8</source>
+ <target>1.8</target>
+ </configuration>
+ </plugin>
</plugins>
</build>
diff --git a/exec/exec-sink/camel-kafka-exec-simple-producer/src/main/java/org/apache/camel/kafkaconnector/SimpleProducer.java b/exec/exec-sink/camel-kafka-exec-simple-producer/src/main/java/org/apache/camel/kafkaconnector/SimpleProducer.java
index dfc156e..25e19af 100644
--- a/exec/exec-sink/camel-kafka-exec-simple-producer/src/main/java/org/apache/camel/kafkaconnector/SimpleProducer.java
+++ b/exec/exec-sink/camel-kafka-exec-simple-producer/src/main/java/org/apache/camel/kafkaconnector/SimpleProducer.java
@@ -1,3 +1,19 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
package org.apache.camel.kafkaconnector;
import java.util.Properties;