From d80760c28eb85b42f2f252b0156b047db3cddaca Mon Sep 17 00:00:00 2001 From: Vaidotas Valuckas Date: Wed, 1 Nov 2023 16:14:34 +0200 Subject: [PATCH] Add description, rename lib --- {lib => postgres-cdc}/build.gradle | 2 ++ .../src/main/java/io/github/rieske/cdc/DatabaseChange.java | 0 .../java/io/github/rieske/cdc/JsonDeserializingConsumer.java | 0 .../io/github/rieske/cdc/PostgresReplicationListener.java | 0 .../test/java/io/github/rieske/cdc/ChangeDataCaptureTest.java | 0 .../src/test/java/io/github/rieske/cdc/DatabaseExtension.java | 0 .../src/test/java/io/github/rieske/cdc/TestConsumers.java | 0 .../java/io/github/rieske/cdc/TransactionalOutboxTest.java | 0 .../src/test/resources/db/migration/V1__init.sql | 0 {lib => postgres-cdc}/src/test/resources/logback.xml | 0 .../src/test/resources/postgres/Dockerfile-13.12 | 0 .../src/test/resources/postgres/Dockerfile-14.9 | 0 .../src/test/resources/postgres/Dockerfile-15.4 | 0 .../src/test/resources/postgres/Dockerfile-16.0 | 0 .../src/test/resources/postgres/postgresql.conf.sample | 0 settings.gradle | 4 ++-- 16 files changed, 4 insertions(+), 2 deletions(-) rename {lib => postgres-cdc}/build.gradle (93%) rename {lib => postgres-cdc}/src/main/java/io/github/rieske/cdc/DatabaseChange.java (100%) rename {lib => postgres-cdc}/src/main/java/io/github/rieske/cdc/JsonDeserializingConsumer.java (100%) rename {lib => postgres-cdc}/src/main/java/io/github/rieske/cdc/PostgresReplicationListener.java (100%) rename {lib => postgres-cdc}/src/test/java/io/github/rieske/cdc/ChangeDataCaptureTest.java (100%) rename {lib => postgres-cdc}/src/test/java/io/github/rieske/cdc/DatabaseExtension.java (100%) rename {lib => postgres-cdc}/src/test/java/io/github/rieske/cdc/TestConsumers.java (100%) rename {lib => postgres-cdc}/src/test/java/io/github/rieske/cdc/TransactionalOutboxTest.java (100%) rename {lib => postgres-cdc}/src/test/resources/db/migration/V1__init.sql (100%) rename {lib => postgres-cdc}/src/test/resources/logback.xml (100%) rename {lib => postgres-cdc}/src/test/resources/postgres/Dockerfile-13.12 (100%) rename {lib => postgres-cdc}/src/test/resources/postgres/Dockerfile-14.9 (100%) rename {lib => postgres-cdc}/src/test/resources/postgres/Dockerfile-15.4 (100%) rename {lib => postgres-cdc}/src/test/resources/postgres/Dockerfile-16.0 (100%) rename {lib => postgres-cdc}/src/test/resources/postgres/postgresql.conf.sample (100%) diff --git a/lib/build.gradle b/postgres-cdc/build.gradle similarity index 93% rename from lib/build.gradle rename to postgres-cdc/build.gradle index bea104c..438218c 100644 --- a/lib/build.gradle +++ b/postgres-cdc/build.gradle @@ -2,6 +2,8 @@ plugins { id("io.github.rieske.postgres-cdc.published-library") } +description = "Stream changes from PostgreSQL database (Change Data Capture)." + dependencies { implementation("org.postgresql:postgresql:42.6.0") implementation("org.slf4j:slf4j-api:2.0.9") diff --git a/lib/src/main/java/io/github/rieske/cdc/DatabaseChange.java b/postgres-cdc/src/main/java/io/github/rieske/cdc/DatabaseChange.java similarity index 100% rename from lib/src/main/java/io/github/rieske/cdc/DatabaseChange.java rename to postgres-cdc/src/main/java/io/github/rieske/cdc/DatabaseChange.java diff --git a/lib/src/main/java/io/github/rieske/cdc/JsonDeserializingConsumer.java b/postgres-cdc/src/main/java/io/github/rieske/cdc/JsonDeserializingConsumer.java similarity index 100% rename from lib/src/main/java/io/github/rieske/cdc/JsonDeserializingConsumer.java rename to postgres-cdc/src/main/java/io/github/rieske/cdc/JsonDeserializingConsumer.java diff --git a/lib/src/main/java/io/github/rieske/cdc/PostgresReplicationListener.java b/postgres-cdc/src/main/java/io/github/rieske/cdc/PostgresReplicationListener.java similarity index 100% rename from lib/src/main/java/io/github/rieske/cdc/PostgresReplicationListener.java rename to postgres-cdc/src/main/java/io/github/rieske/cdc/PostgresReplicationListener.java diff --git a/lib/src/test/java/io/github/rieske/cdc/ChangeDataCaptureTest.java b/postgres-cdc/src/test/java/io/github/rieske/cdc/ChangeDataCaptureTest.java similarity index 100% rename from lib/src/test/java/io/github/rieske/cdc/ChangeDataCaptureTest.java rename to postgres-cdc/src/test/java/io/github/rieske/cdc/ChangeDataCaptureTest.java diff --git a/lib/src/test/java/io/github/rieske/cdc/DatabaseExtension.java b/postgres-cdc/src/test/java/io/github/rieske/cdc/DatabaseExtension.java similarity index 100% rename from lib/src/test/java/io/github/rieske/cdc/DatabaseExtension.java rename to postgres-cdc/src/test/java/io/github/rieske/cdc/DatabaseExtension.java diff --git a/lib/src/test/java/io/github/rieske/cdc/TestConsumers.java b/postgres-cdc/src/test/java/io/github/rieske/cdc/TestConsumers.java similarity index 100% rename from lib/src/test/java/io/github/rieske/cdc/TestConsumers.java rename to postgres-cdc/src/test/java/io/github/rieske/cdc/TestConsumers.java diff --git a/lib/src/test/java/io/github/rieske/cdc/TransactionalOutboxTest.java b/postgres-cdc/src/test/java/io/github/rieske/cdc/TransactionalOutboxTest.java similarity index 100% rename from lib/src/test/java/io/github/rieske/cdc/TransactionalOutboxTest.java rename to postgres-cdc/src/test/java/io/github/rieske/cdc/TransactionalOutboxTest.java diff --git a/lib/src/test/resources/db/migration/V1__init.sql b/postgres-cdc/src/test/resources/db/migration/V1__init.sql similarity index 100% rename from lib/src/test/resources/db/migration/V1__init.sql rename to postgres-cdc/src/test/resources/db/migration/V1__init.sql diff --git a/lib/src/test/resources/logback.xml b/postgres-cdc/src/test/resources/logback.xml similarity index 100% rename from lib/src/test/resources/logback.xml rename to postgres-cdc/src/test/resources/logback.xml diff --git a/lib/src/test/resources/postgres/Dockerfile-13.12 b/postgres-cdc/src/test/resources/postgres/Dockerfile-13.12 similarity index 100% rename from lib/src/test/resources/postgres/Dockerfile-13.12 rename to postgres-cdc/src/test/resources/postgres/Dockerfile-13.12 diff --git a/lib/src/test/resources/postgres/Dockerfile-14.9 b/postgres-cdc/src/test/resources/postgres/Dockerfile-14.9 similarity index 100% rename from lib/src/test/resources/postgres/Dockerfile-14.9 rename to postgres-cdc/src/test/resources/postgres/Dockerfile-14.9 diff --git a/lib/src/test/resources/postgres/Dockerfile-15.4 b/postgres-cdc/src/test/resources/postgres/Dockerfile-15.4 similarity index 100% rename from lib/src/test/resources/postgres/Dockerfile-15.4 rename to postgres-cdc/src/test/resources/postgres/Dockerfile-15.4 diff --git a/lib/src/test/resources/postgres/Dockerfile-16.0 b/postgres-cdc/src/test/resources/postgres/Dockerfile-16.0 similarity index 100% rename from lib/src/test/resources/postgres/Dockerfile-16.0 rename to postgres-cdc/src/test/resources/postgres/Dockerfile-16.0 diff --git a/lib/src/test/resources/postgres/postgresql.conf.sample b/postgres-cdc/src/test/resources/postgres/postgresql.conf.sample similarity index 100% rename from lib/src/test/resources/postgres/postgresql.conf.sample rename to postgres-cdc/src/test/resources/postgres/postgresql.conf.sample diff --git a/settings.gradle b/settings.gradle index 2edcc06..009929b 100644 --- a/settings.gradle +++ b/settings.gradle @@ -6,6 +6,6 @@ dependencyResolutionManagement { mavenCentral() } } -rootProject.name = 'postgres-cdc' +rootProject.name = "postgres-cdc" -include('lib') +include("postgres-cdc")