refactor: rename kafka sink module

This commit is contained in:
lingniu
2026-07-01 10:56:33 +08:00
parent 849e8f8a8b
commit e80fa6f38c
43 changed files with 87 additions and 66 deletions

View File

@@ -35,7 +35,7 @@
</dependency>
<dependency>
<groupId>com.lingniu.ingest</groupId>
<artifactId>sink-mq</artifactId>
<artifactId>sink-kafka</artifactId>
</dependency>
<dependency>
<groupId>com.lingniu.ingest</groupId>

View File

@@ -35,7 +35,7 @@
</dependency>
<dependency>
<groupId>com.lingniu.ingest</groupId>
<artifactId>sink-mq</artifactId>
<artifactId>sink-kafka</artifactId>
</dependency>
<dependency>
<groupId>com.lingniu.ingest</groupId>

View File

@@ -23,7 +23,7 @@
</dependency>
<dependency>
<groupId>com.lingniu.ingest</groupId>
<artifactId>sink-mq</artifactId>
<artifactId>sink-kafka</artifactId>
</dependency>
<dependency>
<groupId>com.lingniu.ingest</groupId>

View File

@@ -23,7 +23,7 @@
</dependency>
<dependency>
<groupId>com.lingniu.ingest</groupId>
<artifactId>sink-mq</artifactId>
<artifactId>sink-kafka</artifactId>
</dependency>
<dependency>
<groupId>com.lingniu.ingest</groupId>

View File

@@ -79,6 +79,27 @@ class MavenModuleProfileTest {
.isFalse();
}
@Test
void kafkaSinkModuleUsesKafkaNamingInsteadOfMqNaming() throws Exception {
Document pom = rootPom();
Document kafkaSinkPom = modulePom("modules/sinks/sink-kafka/pom.xml");
String readme = Files.readString(repositoryRoot().resolve("README.md"));
String legacyModule = "modules/sinks/sink-" + "mq";
String legacyArtifact = "sink-" + "mq";
assertThat(defaultModules(pom))
.contains("modules/sinks/sink-kafka")
.doesNotContain(legacyModule);
assertThat(rootDependencyManagementArtifacts(pom))
.contains("sink-kafka")
.doesNotContain(legacyArtifact);
assertThat(firstDirectChild(kafkaSinkPom.getDocumentElement(), "artifactId").getTextContent())
.isEqualTo("sink-kafka");
assertThat(readme)
.contains("sink-kafka/")
.doesNotContain(legacyArtifact);
}
@Test
void xindaIsLegacyOnlyAndOutsideDefaultProductionReactor() throws Exception {
Document pom = rootPom();

View File

@@ -31,7 +31,7 @@
</dependency>
<dependency>
<groupId>com.lingniu.ingest</groupId>
<artifactId>sink-mq</artifactId>
<artifactId>sink-kafka</artifactId>
</dependency>
<dependency>
<groupId>com.lingniu.ingest</groupId>

View File

@@ -31,7 +31,7 @@
</dependency>
<dependency>
<groupId>com.lingniu.ingest</groupId>
<artifactId>sink-mq</artifactId>
<artifactId>sink-kafka</artifactId>
</dependency>
<dependency>
<groupId>com.lingniu.ingest</groupId>

View File

@@ -22,7 +22,7 @@
</dependency>
<dependency>
<groupId>com.lingniu.ingest</groupId>
<artifactId>sink-mq</artifactId>
<artifactId>sink-kafka</artifactId>
</dependency>
<dependency>
<groupId>com.lingniu.ingest</groupId>

View File

@@ -14,7 +14,7 @@
<dependencies>
<dependency>
<groupId>com.lingniu.ingest</groupId>
<artifactId>sink-mq</artifactId>
<artifactId>sink-kafka</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>

View File

@@ -14,7 +14,7 @@
<dependencies>
<dependency>
<groupId>com.lingniu.ingest</groupId>
<artifactId>sink-mq</artifactId>
<artifactId>sink-kafka</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>

View File

@@ -7,8 +7,8 @@
<version>0.1.0-SNAPSHOT</version>
<relativePath>../../../pom.xml</relativePath>
</parent>
<artifactId>sink-mq</artifactId>
<name>sink-mq</name>
<artifactId>sink-kafka</artifactId>
<name>sink-kafka</name>
<description>Kafka producer + Protobuf Envelope + 重试/熔断/DLQ。</description>
<dependencies>

View File

@@ -14,7 +14,7 @@
<dependencies>
<dependency>
<groupId>com.lingniu.ingest</groupId>
<artifactId>sink-mq</artifactId>
<artifactId>sink-kafka</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>