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 47e1d69ad73..84d4f337cdd 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
@@ -25,6 +25,8 @@ public class PulsarModuleFactory {
private static final JHipsterSource SOURCE = from("server/springboot/broker/pulsar");
+ private static final String PULSAR = "pulsar";
+
private static final String PULSAR_CONFIG = "wire/pulsar/infrastructure/config";
private final DockerImages dockerImages;
@@ -45,7 +47,8 @@ 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"), versionSlug(PULSAR))
+ .addDependency(groupId("org.apache.pulsar"), artifactId("pulsar-client-api"), versionSlug(PULSAR))
.addDependency(testContainerDependency())
.and()
.files()
@@ -77,7 +80,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 c5f1db54aa0..d0be0e991f3 100644
--- a/src/main/resources/generator/dependencies/pom.xml
+++ b/src/main/resources/generator/dependencies/pom.xml
@@ -24,7 +24,7 @@
3.8.0
5.4.4
2.13.2
- 3.3.1
+ 3.3.2
4.29.2
0.10.2
0.12.6
@@ -347,6 +347,11 @@
pulsar-client
${pulsar.version}
+
+ org.apache.pulsar
+ pulsar-client-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 1b474a1247e..4f5d0870034 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
@@ -45,6 +45,11 @@ void shouldBuildModule() {
pulsar-client
${pulsar.version}
+
+ org.apache.pulsar
+ pulsar-client-api
+ ${pulsar.version}
+
"""
)
.containing(