build: remove unused mqtt client dependency

This commit is contained in:
lingniu
2026-07-01 13:06:39 +08:00
parent 78c39036cd
commit 422a24684d
2 changed files with 14 additions and 6 deletions

View File

@@ -201,6 +201,20 @@ class MavenModuleProfileTest {
.doesNotContain("| 消息队列 |");
}
@Test
void yutongMqttBuildSurfaceUsesOnlyPahoClient() throws Exception {
Document pom = rootPom();
assertThat(hasProjectProperty(pom, "paho-mqtt.version"))
.isTrue();
assertThat(hasDependency(pom, "org.eclipse.paho", "org.eclipse.paho.client.mqttv3"))
.isTrue();
assertThat(hasProjectProperty(pom, "fusesource-mqtt.version"))
.isFalse();
assertThat(hasDependency(pom, "org.fusesource.mqtt-client", "mqtt-client"))
.isFalse();
}
@Test
void productionDocsDoNotAdvertiseMemorySessionStore() throws Exception {
String runbook = Files.readString(repositoryRoot()