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")