chore: limit observability to ingest apps

This commit is contained in:
lingniu
2026-07-01 15:25:57 +08:00
parent 9cd5c5a35d
commit dc56a664f4
3 changed files with 11 additions and 8 deletions

View File

@@ -17,10 +17,6 @@
<groupId>com.lingniu.ingest</groupId> <groupId>com.lingniu.ingest</groupId>
<artifactId>ingest-api</artifactId> <artifactId>ingest-api</artifactId>
</dependency> </dependency>
<dependency>
<groupId>com.lingniu.ingest</groupId>
<artifactId>observability</artifactId>
</dependency>
<dependency> <dependency>
<groupId>com.lingniu.ingest</groupId> <groupId>com.lingniu.ingest</groupId>
<artifactId>sink-kafka</artifactId> <artifactId>sink-kafka</artifactId>

View File

@@ -17,10 +17,6 @@
<groupId>com.lingniu.ingest</groupId> <groupId>com.lingniu.ingest</groupId>
<artifactId>ingest-api</artifactId> <artifactId>ingest-api</artifactId>
</dependency> </dependency>
<dependency>
<groupId>com.lingniu.ingest</groupId>
<artifactId>observability</artifactId>
</dependency>
<dependency> <dependency>
<groupId>com.lingniu.ingest</groupId> <groupId>com.lingniu.ingest</groupId>
<artifactId>sink-kafka</artifactId> <artifactId>sink-kafka</artifactId>

View File

@@ -283,6 +283,17 @@ class MavenModuleProfileTest {
.isFalse(); .isFalse();
} }
@Test
void consumerAppsDoNotDependOnPipelineObservabilityInterceptor() throws Exception {
for (String appPom : List.of(
"modules/apps/vehicle-history-app/pom.xml",
"modules/apps/vehicle-analytics-app/pom.xml")) {
assertThat(hasDependency(modulePom(appPom), "com.lingniu.ingest", "observability"))
.as(appPom + " is a Kafka consumer/query runtime, not an ingest pipeline runtime")
.isFalse();
}
}
@Test @Test
void buildSurfaceDoesNotManageLombokWhenProductionSourcesDoNotUseIt() throws Exception { void buildSurfaceDoesNotManageLombokWhenProductionSourcesDoNotUseIt() throws Exception {
Document pom = rootPom(); Document pom = rootPom();