diff --git a/src/main/java/tech/jhipster/lite/generator/server/springboot/broker/pulsar/domain/PulsarModuleFactory.java b/src/main/java/tech/jhipster/lite/generator/server/springboot/broker/pulsar/domain/PulsarModuleFactory.java
index e9117bdd072..07bfc489aa6 100644
--- a/src/main/java/tech/jhipster/lite/generator/server/springboot/broker/pulsar/domain/PulsarModuleFactory.java
+++ b/src/main/java/tech/jhipster/lite/generator/server/springboot/broker/pulsar/domain/PulsarModuleFactory.java
@@ -10,7 +10,6 @@
import static tech.jhipster.lite.module.domain.JHipsterModule.toSrcMainDocker;
import static tech.jhipster.lite.module.domain.JHipsterModule.toSrcMainJava;
import static tech.jhipster.lite.module.domain.JHipsterModule.toSrcTestJava;
-import static tech.jhipster.lite.module.domain.JHipsterModule.versionSlug;
import tech.jhipster.lite.module.domain.JHipsterModule;
import tech.jhipster.lite.module.domain.docker.DockerImages;
@@ -25,10 +24,6 @@ public class PulsarModuleFactory {
private static final JHipsterSource SOURCE = from("server/springboot/broker/pulsar");
- private static final String PULSAR = "pulsar";
-
- private static final String ORG_APACHE_PULSAR = "org.apache.pulsar";
-
private static final String PULSAR_CONFIG = "wire/pulsar/infrastructure/config";
private final DockerImages dockerImages;
@@ -49,9 +44,7 @@ public JHipsterModule buildModule(JHipsterModuleProperties properties) {
.put("pulsarDockerImage", dockerImages.get("apachepulsar/pulsar").fullName())
.and()
.javaDependencies()
- .addDependency(groupId(ORG_APACHE_PULSAR), artifactId("pulsar-client"), versionSlug(PULSAR))
- .addDependency(groupId(ORG_APACHE_PULSAR), artifactId("pulsar-client-api"), versionSlug(PULSAR))
- .addDependency(groupId(ORG_APACHE_PULSAR), artifactId("pulsar-client-admin-api"), versionSlug(PULSAR))
+ .addDependency(groupId("org.springframework.boot"), artifactId("spring-boot-starter-pulsar"))
.addDependency(testContainerDependency())
.and()
.files()
@@ -83,7 +76,7 @@ public JHipsterModule buildModule(JHipsterModuleProperties properties) {
private JavaDependency testContainerDependency() {
return javaDependency()
.groupId("org.testcontainers")
- .artifactId(PULSAR)
+ .artifactId("pulsar")
.versionSlug("testcontainers")
.scope(JavaDependencyScope.TEST)
.build();
diff --git a/src/main/resources/generator/dependencies/pom.xml b/src/main/resources/generator/dependencies/pom.xml
index 86c46049944..f467d88cb08 100644
--- a/src/main/resources/generator/dependencies/pom.xml
+++ b/src/main/resources/generator/dependencies/pom.xml
@@ -24,7 +24,6 @@
3.8.0
5.5.0
2.13.3
- 4.0.0
4.29.2
0.10.2
0.12.6
@@ -342,21 +341,6 @@
${cassandraunit.version}
test
-
- org.apache.pulsar
- pulsar-client
- ${pulsar.version}
-
-
- org.apache.pulsar
- pulsar-client-api
- ${pulsar.version}
-
-
- org.apache.pulsar
- pulsar-client-admin-api
- ${pulsar.version}
-
com.approvaltests
approvaltests
diff --git a/src/test/java/tech/jhipster/lite/generator/server/springboot/broker/pulsar/domain/PulsarModuleFactoryTest.java b/src/test/java/tech/jhipster/lite/generator/server/springboot/broker/pulsar/domain/PulsarModuleFactoryTest.java
index fa03c8dc9f7..a166bde0a12 100644
--- a/src/test/java/tech/jhipster/lite/generator/server/springboot/broker/pulsar/domain/PulsarModuleFactoryTest.java
+++ b/src/test/java/tech/jhipster/lite/generator/server/springboot/broker/pulsar/domain/PulsarModuleFactoryTest.java
@@ -41,19 +41,8 @@ void shouldBuildModule() {
.containing(
"""
- org.apache.pulsar
- pulsar-client
- ${pulsar.version}
-
-
- org.apache.pulsar
- pulsar-client-api
- ${pulsar.version}
-
-
- org.apache.pulsar
- pulsar-client-admin-api
- ${pulsar.version}
+ org.springframework.boot
+ spring-boot-starter-pulsar
"""
)