From 4b52f08b81cc6d2cedca8a0f90d8a276a9ea307c Mon Sep 17 00:00:00 2001 From: harveyyue Date: Sun, 10 Mar 2024 15:39:52 +0800 Subject: [PATCH] DBZ-7618 Implement Versioned interfaces in Transformation and Converter plugins --- src/main/java/io/debezium/connector/db2/Module.java | 8 ++------ .../resources/io/debezium/connector/db2/build.version | 1 - 2 files changed, 2 insertions(+), 7 deletions(-) delete mode 100644 src/main/resources/io/debezium/connector/db2/build.version diff --git a/src/main/java/io/debezium/connector/db2/Module.java b/src/main/java/io/debezium/connector/db2/Module.java index b6bd4e8..5d2c311 100644 --- a/src/main/java/io/debezium/connector/db2/Module.java +++ b/src/main/java/io/debezium/connector/db2/Module.java @@ -5,9 +5,7 @@ */ package io.debezium.connector.db2; -import java.util.Properties; - -import io.debezium.util.IoUtil; +import io.debezium.util.VersionParser; /** * Information about this module. @@ -16,10 +14,8 @@ */ public final class Module { - private static final Properties INFO = IoUtil.loadProperties(Module.class, "io/debezium/connector/db2/build.version"); - public static String version() { - return INFO.getProperty("version"); + return VersionParser.getVersion(); } /** diff --git a/src/main/resources/io/debezium/connector/db2/build.version b/src/main/resources/io/debezium/connector/db2/build.version deleted file mode 100644 index e5683df..0000000 --- a/src/main/resources/io/debezium/connector/db2/build.version +++ /dev/null @@ -1 +0,0 @@ -version=${project.version} \ No newline at end of file