Skip to content

Commit

Permalink
Pulsar: uses spring-boot-starter-pulsar
Browse files Browse the repository at this point in the history
  • Loading branch information
qmonmert committed Oct 25, 2024
1 parent a0488b9 commit 2be44e4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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()
Expand Down Expand Up @@ -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();
Expand Down
16 changes: 0 additions & 16 deletions src/main/resources/generator/dependencies/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
<kafka-clients.version>3.8.0</kafka-clients.version>
<mongock.version>5.5.0</mongock.version>
<neo4j-migrations.version>2.13.3</neo4j-migrations.version>
<pulsar.version>4.0.0</pulsar.version>
<liquibase.version>4.29.2</liquibase.version>
<reflections.version>0.10.2</reflections.version>
<json-web-token.version>0.12.6</json-web-token.version>
Expand Down Expand Up @@ -342,21 +341,6 @@
<version>${cassandraunit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.pulsar</groupId>
<artifactId>pulsar-client</artifactId>
<version>${pulsar.version}</version>
</dependency>
<dependency>
<groupId>org.apache.pulsar</groupId>
<artifactId>pulsar-client-api</artifactId>
<version>${pulsar.version}</version>
</dependency>
<dependency>
<groupId>org.apache.pulsar</groupId>
<artifactId>pulsar-client-admin-api</artifactId>
<version>${pulsar.version}</version>
</dependency>
<dependency>
<groupId>com.approvaltests</groupId>
<artifactId>approvaltests</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,8 @@ void shouldBuildModule() {
.containing(
"""
<dependency>
<groupId>org.apache.pulsar</groupId>
<artifactId>pulsar-client</artifactId>
<version>${pulsar.version}</version>
</dependency>
<dependency>
<groupId>org.apache.pulsar</groupId>
<artifactId>pulsar-client-api</artifactId>
<version>${pulsar.version}</version>
</dependency>
<dependency>
<groupId>org.apache.pulsar</groupId>
<artifactId>pulsar-client-admin-api</artifactId>
<version>${pulsar.version}</version>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-pulsar</artifactId>
</dependency>
"""
)
Expand Down

0 comments on commit 2be44e4

Please sign in to comment.