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/12/07 06:26:25 UTC

[camel-kafka-connector] 02/02: fix #754 : create binary ditribution.

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-kafka-connector.git

commit 77b35cf56e3f783c6b5acfa8954975c808097b0f
Author: Andrea Tarocchi <an...@gmail.com>
AuthorDate: Sun Dec 6 23:57:13 2020 +0100

    fix #754 : create binary ditribution.
---
 distribution/pom.xml                               | 15 ++++++-
 .../src/main/assemblies/binary-release.xml         | 48 ++++++++++++++++++++++
 2 files changed, 62 insertions(+), 1 deletion(-)

diff --git a/distribution/pom.xml b/distribution/pom.xml
index 7066115..5233b70 100644
--- a/distribution/pom.xml
+++ b/distribution/pom.xml
@@ -45,12 +45,25 @@
                   <goal>single</goal>
                 </goals>
                 <configuration>
-                  <finalName>camel-kafka-connector-${project.version}</finalName>
+                  <finalName>camel-kafka-connector-source-${project.version}</finalName>
                   <descriptors>
                     <descriptor>src/main/assemblies/source-release.xml</descriptor>
                   </descriptors>
                 </configuration>
               </execution>
+              <execution>
+                <id>binary-release</id>
+                <phase>package</phase>
+                <goals>
+                  <goal>single</goal>
+                </goals>
+                <configuration>
+                  <finalName>camel-kafka-connector-binary-${project.version}</finalName>
+                  <descriptors>
+                    <descriptor>src/main/assemblies/binary-release.xml</descriptor>
+                  </descriptors>
+                </configuration>
+              </execution>
             </executions>
           </plugin>
         </plugins>
diff --git a/distribution/src/main/assemblies/binary-release.xml b/distribution/src/main/assemblies/binary-release.xml
new file mode 100644
index 0000000..44d9fe2
--- /dev/null
+++ b/distribution/src/main/assemblies/binary-release.xml
@@ -0,0 +1,48 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!--
+
+    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.
+
+-->
+<assembly>
+  <id>source-release</id>
+  <!-- the only thing being done differently here is the base directory -->
+  <baseDirectory>apache-camel-kafkaconnector-${version}</baseDirectory>
+  <formats>
+    <format>zip</format>
+  </formats>
+  <includeBaseDirectory>true</includeBaseDirectory>
+  <moduleSets>
+    <moduleSet>
+      <useAllReactorProjects>true</useAllReactorProjects>
+      <includes>
+        <include>org.apache.camel.kafkaconnector:camel-*-kafka-connector</include>
+      </includes>
+      <sources>
+        <includeModuleDirectory>false</includeModuleDirectory>
+        <fileSets>
+          <fileSet>
+            <directory>target/</directory>
+            <outputDirectory>.</outputDirectory>
+            <includes>
+              <include>*.zip</include>
+            </includes>
+          </fileSet>
+        </fileSets>
+      </sources>
+    </moduleSet>
+  </moduleSets>
+</assembly>