Skip to content

Commit

Permalink
DBZ-8264 Include product sinks and connectors only
Browse files Browse the repository at this point in the history
  • Loading branch information
jpechane committed Sep 23, 2024
1 parent ff77971 commit 5f85f1e
Show file tree
Hide file tree
Showing 2 changed files with 207 additions and 0 deletions.
102 changes: 102 additions & 0 deletions debezium-server-dist/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,108 @@
</plugins>
</build>
</profile>
<profile>
<id>assembly-prod</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<assembly.descriptor>server-distribution-prod</assembly.descriptor>
</properties>
<dependencies>
<dependency>
<groupId>io.prometheus.jmx</groupId>
<artifactId>jmx_prometheus_javaagent</artifactId>
</dependency>
<dependency>
<groupId>io.debezium</groupId>
<artifactId>debezium-connector-mysql</artifactId>
</dependency>
<dependency>
<groupId>io.debezium</groupId>
<artifactId>debezium-connector-mariadb</artifactId>
</dependency>
<dependency>
<groupId>io.debezium</groupId>
<artifactId>debezium-connector-postgres</artifactId>
</dependency>
<dependency>
<groupId>io.debezium</groupId>
<artifactId>debezium-connector-mongodb</artifactId>
</dependency>
<dependency>
<groupId>io.debezium</groupId>
<artifactId>debezium-connector-sqlserver</artifactId>
</dependency>
<dependency>
<groupId>io.debezium</groupId>
<artifactId>debezium-connector-oracle</artifactId>
</dependency>
<dependency>
<groupId>io.debezium</groupId>
<artifactId>debezium-connector-db2</artifactId>
</dependency>
<dependency>
<groupId>io.debezium</groupId>
<artifactId>debezium-scripting</artifactId>
</dependency>
<dependency>
<groupId>io.debezium</groupId>
<artifactId>debezium-scripting-languages</artifactId>
<type>pom</type>
</dependency>
<dependency>
<groupId>io.debezium</groupId>
<artifactId>debezium-server-core</artifactId>
</dependency>
<dependency>
<groupId>io.debezium</groupId>
<artifactId>debezium-server-http</artifactId>
</dependency>
<dependency>
<groupId>io.debezium</groupId>
<artifactId>debezium-server-redis</artifactId>
</dependency>
<dependency>
<groupId>io.debezium</groupId>
<artifactId>debezium-server-kafka</artifactId>
</dependency>
<dependency>
<groupId>io.debezium</groupId>
<artifactId>debezium-server-infinispan</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-logging-json</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>${version.assembly.plugin}</version>
<executions>
<execution>
<id>default</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<appendAssemblyId>false</appendAssemblyId>
<attach>true</attach> <!-- we want attach & deploy these to Maven -->
<descriptors>
<descriptor>src/main/resources/assemblies/${assembly.descriptor}.xml</descriptor>
</descriptors>
<tarLongFileMode>posix</tarLongFileMode>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>include-non-core-connectors</id>
<activation>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
<?xml version="1.0"?>
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
<id>distribution</id>
<formats>
<format>tar.gz</format>
<format>zip</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<dependencySets>
<dependencySet>
<outputDirectory>${project.parent.artifactId}/lib</outputDirectory>
<unpack>false</unpack>
<scope>runtime</scope>
<useProjectArtifact>false</useProjectArtifact>
<useTransitiveFiltering>true</useTransitiveFiltering>
<excludes>
<exclude>org.apache.kafka:kafka-tools:*</exclude>
<exclude>javax.ws.rs:javax.ws.rs-api:*</exclude>
<exclude>org.apache.kafka:connect-file:*</exclude>
<exclude>org.glassfish.jersey.*:*:*</exclude>
<exclude>org.apache.maven:*:*</exclude>
<exclude>log4j:log4j:*</exclude>
<exclude>ch.qos.reload4j:reload4j</exclude>
<exclude>io.debezium:debezium-scripting</exclude>
<exclude>io.debezium:debezium-scripting-languages</exclude>
<exclude>io.debezium:debezium-connector-cassandra-3</exclude>
<exclude>io.debezium:debezium-connector-cassandra-4</exclude>
<exclude>io.debezium:debezium-connector-dse</exclude>
<exclude>io.prometheus.jmx:jmx_prometheus_javaagent:*</exclude>
</excludes>
</dependencySet>
<dependencySet>
<outputDirectory>${project.parent.artifactId}/lib</outputDirectory>
<unpack>false</unpack>
<scope>runtime</scope>
<useProjectArtifact>false</useProjectArtifact>
<useTransitiveFiltering>true</useTransitiveFiltering>
<includes>
<include>jakarta.ws.rs:*:*</include>
<include>jakarta.annotation:*:*</include>
<include>jakarta.xml.bind:*:*</include>
<include>jakarta.activation:*:*</include>
<include>jakarta.validation:*:*</include>
</includes>
</dependencySet>
<dependencySet>
<outputDirectory>${project.parent.artifactId}/lib_metrics</outputDirectory>
<unpack>false</unpack>
<scope>runtime</scope>
<useProjectArtifact>false</useProjectArtifact>
<useTransitiveFiltering>true</useTransitiveFiltering>
<includes>
<include>io.prometheus.jmx:jmx_prometheus_javaagent:*</include>
</includes>
</dependencySet>
<dependencySet>
<outputDirectory>${project.parent.artifactId}/lib_opt</outputDirectory>
<unpack>false</unpack>
<scope>runtime</scope>
<useProjectArtifact>false</useProjectArtifact>
<useTransitiveFiltering>true</useTransitiveFiltering>
<includes>
<include>io.debezium:debezium-scripting:*</include>
<include>io.debezium:debezium-scripting-languages:*</include>
</includes>
</dependencySet>
</dependencySets>
<fileSets>
<fileSet>
<!-- Get the files from the top-level directory -->
<directory>${project.basedir}/../..</directory>
<outputDirectory>${project.parent.artifactId}</outputDirectory>
<includes>
<include>README*</include>
<include>CHANGELOG*</include>
<include>CONTRIBUTE*</include>
<include>COPYRIGHT*</include>
<include>LICENSE*</include>
</includes>
<useDefaultExcludes>true</useDefaultExcludes>
</fileSet>
<fileSet>
<!-- >directory>../${project.parent.artifactId}-core/target</directory-->
<directory>${project.build.directory}</directory>
<outputDirectory>${project.parent.artifactId}</outputDirectory>
<includes>
<include>*-runner.jar</include>
</includes>
</fileSet>
<fileSet>
<directory>src/main/resources/distro</directory>
<outputDirectory>${project.parent.artifactId}</outputDirectory>
<includes>
<include>**/*</include>
</includes>
<excludes>
<exclude>connectors/</exclude>
<exclude>**/*cassandra*</exclude>
<exclude>**/*cassandra*/*</exclude>
</excludes>
</fileSet>
</fileSets>
</assembly>

0 comments on commit 5f85f1e

Please sign in to comment.