Skip to content

Commit 54a4092

Browse files
committed
Create spring-boot-pulsar module
1 parent b6f3188 commit 54a4092

File tree

41 files changed

+125
-95
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+125
-95
lines changed

settings.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ include "spring-boot-project:spring-boot-kafka"
6464
include "spring-boot-project:spring-boot-liquibase"
6565
include "spring-boot-project:spring-boot-mail"
6666
include "spring-boot-project:spring-boot-parent"
67+
include "spring-boot-project:spring-boot-pulsar"
6768
include "spring-boot-project:spring-boot-reactor-netty"
6869
include "spring-boot-project:spring-boot-test"
6970
include "spring-boot-project:spring-boot-test-autoconfigure"

spring-boot-project/spring-boot-autoconfigure-all/build.gradle

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ dependencies {
3939
dockerTestImplementation("org.testcontainers:junit-jupiter")
4040
dockerTestImplementation("org.testcontainers:mongodb")
4141
dockerTestImplementation("org.testcontainers:neo4j")
42-
dockerTestImplementation("org.testcontainers:pulsar")
4342
dockerTestImplementation("org.testcontainers:testcontainers")
4443

4544
optional(project(":spring-boot-project:spring-boot-activemq"))
@@ -194,8 +193,6 @@ dependencies {
194193
optional("org.springframework.data:spring-data-redis")
195194
optional("org.springframework.graphql:spring-graphql")
196195
optional("org.springframework.hateoas:spring-hateoas")
197-
optional("org.springframework.pulsar:spring-pulsar")
198-
optional("org.springframework.pulsar:spring-pulsar-reactive")
199196
optional("org.springframework.security:spring-security-acl")
200197
optional("org.springframework.security:spring-security-config")
201198
optional("org.springframework.security:spring-security-data") {
@@ -260,7 +257,6 @@ dependencies {
260257
testImplementation("org.postgresql:postgresql")
261258
testImplementation("org.postgresql:r2dbc-postgresql")
262259
testImplementation("org.springframework.graphql:spring-graphql-test")
263-
testImplementation("org.springframework.pulsar:spring-pulsar-cache-provider-caffeine")
264260
testImplementation("org.springframework.security:spring-security-test")
265261
testImplementation("org.yaml:snakeyaml")
266262

spring-boot-project/spring-boot-autoconfigure-all/src/main/resources/META-INF/additional-spring-configuration-metadata.json

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,24 +1107,6 @@
11071107
"name": "spring.neo4j.uri",
11081108
"defaultValue": "bolt://localhost:7687"
11091109
},
1110-
{
1111-
"name": "spring.pulsar.defaults.topic.enabled",
1112-
"type": "java.lang.Boolean",
1113-
"description": "Whether to enable default tenant and namespace support for topics.",
1114-
"defaultValue": true
1115-
},
1116-
{
1117-
"name": "spring.pulsar.function.enabled",
1118-
"type": "java.lang.Boolean",
1119-
"description": "Whether to enable function support.",
1120-
"defaultValue": true
1121-
},
1122-
{
1123-
"name": "spring.pulsar.producer.cache.enabled",
1124-
"type": "java.lang.Boolean",
1125-
"description": "Whether to enable caching in the PulsarProducerFactory.",
1126-
"defaultValue": true
1127-
},
11281110
{
11291111
"name": "spring.quartz.jdbc.comment-prefix",
11301112
"defaultValue": [

spring-boot-project/spring-boot-autoconfigure-all/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ org.springframework.boot.autoconfigure.mustache.MustacheAutoConfiguration
6363
org.springframework.boot.autoconfigure.neo4j.Neo4jAutoConfiguration
6464
org.springframework.boot.autoconfigure.netty.NettyAutoConfiguration
6565
org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration
66-
org.springframework.boot.autoconfigure.pulsar.PulsarAutoConfiguration
67-
org.springframework.boot.autoconfigure.pulsar.PulsarReactiveAutoConfiguration
6866
org.springframework.boot.autoconfigure.quartz.QuartzAutoConfiguration
6967
org.springframework.boot.autoconfigure.r2dbc.R2dbcAutoConfiguration
7068
org.springframework.boot.autoconfigure.r2dbc.R2dbcInitializationAutoConfiguration

spring-boot-project/spring-boot-dependencies/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2013,6 +2013,7 @@ bom {
20132013
"spring-boot-loader-tools",
20142014
"spring-boot-mail",
20152015
"spring-boot-properties-migrator",
2016+
"spring-boot-pulsar",
20162017
"spring-boot-reactor-netty",
20172018
"spring-boot-starter",
20182019
"spring-boot-starter-activemq",

spring-boot-project/spring-boot-docker-compose/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ dependencies {
1414
dockerTestImplementation(project(":spring-boot-project:spring-boot-jdbc"))
1515
dockerTestImplementation(project(":spring-boot-project:spring-boot-flyway"))
1616
dockerTestImplementation(project(":spring-boot-project:spring-boot-liquibase"))
17+
dockerTestImplementation(project(":spring-boot-project:spring-boot-pulsar"))
1718
dockerTestImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support-docker"))
1819
dockerTestImplementation("com.hazelcast:hazelcast")
1920
dockerTestImplementation("com.redis:testcontainers-redis")
@@ -42,6 +43,7 @@ dependencies {
4243
optional(project(":spring-boot-project:spring-boot-flyway"))
4344
optional(project(":spring-boot-project:spring-boot-jdbc"))
4445
optional(project(":spring-boot-project:spring-boot-liquibase"))
46+
optional(project(":spring-boot-project:spring-boot-pulsar"))
4547
optional("com.hazelcast:hazelcast")
4648
optional("io.r2dbc:r2dbc-spi")
4749
optional("org.mongodb:mongodb-driver-core")

spring-boot-project/spring-boot-docker-compose/src/dockerTest/java/org/springframework/boot/docker/compose/service/connection/pulsar/PulsarDockerComposeConnectionDetailsFactoryIntegrationTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,8 +16,8 @@
1616

1717
package org.springframework.boot.docker.compose.service.connection.pulsar;
1818

19-
import org.springframework.boot.autoconfigure.pulsar.PulsarConnectionDetails;
2019
import org.springframework.boot.docker.compose.service.connection.test.DockerComposeTest;
20+
import org.springframework.boot.pulsar.autoconfigure.PulsarConnectionDetails;
2121
import org.springframework.boot.testsupport.container.TestImage;
2222

2323
import static org.assertj.core.api.Assertions.assertThat;

spring-boot-project/spring-boot-docker-compose/src/main/java/org/springframework/boot/docker/compose/service/connection/pulsar/PulsarDockerComposeConnectionDetailsFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2023 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,11 +16,11 @@
1616

1717
package org.springframework.boot.docker.compose.service.connection.pulsar;
1818

19-
import org.springframework.boot.autoconfigure.pulsar.PulsarConnectionDetails;
2019
import org.springframework.boot.docker.compose.core.ConnectionPorts;
2120
import org.springframework.boot.docker.compose.core.RunningService;
2221
import org.springframework.boot.docker.compose.service.connection.DockerComposeConnectionDetailsFactory;
2322
import org.springframework.boot.docker.compose.service.connection.DockerComposeConnectionSource;
23+
import org.springframework.boot.pulsar.autoconfigure.PulsarConnectionDetails;
2424

2525
/**
2626
* {@link DockerComposeConnectionDetailsFactory} to create {@link PulsarConnectionDetails}

spring-boot-project/spring-boot-docs/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ dependencies {
7171
autoConfiguration(project(path: ":spring-boot-project:spring-boot-kafka", configuration: "autoConfigurationMetadata"))
7272
autoConfiguration(project(path: ":spring-boot-project:spring-boot-liquibase", configuration: "autoConfigurationMetadata"))
7373
autoConfiguration(project(path: ":spring-boot-project:spring-boot-mail", configuration: "autoConfigurationMetadata"))
74+
autoConfiguration(project(path: ":spring-boot-project:spring-boot-pulsar", configuration: "autoConfigurationMetadata"))
7475
autoConfiguration(project(path: ":spring-boot-project:spring-boot-reactor-netty", configuration: "autoConfigurationMetadata"))
7576
autoConfiguration(project(path: ":spring-boot-project:spring-boot-testcontainers", configuration: "autoConfigurationMetadata"))
7677
autoConfiguration(project(path: ":spring-boot-project:spring-boot-tomcat", configuration: "autoConfigurationMetadata"))
@@ -98,6 +99,7 @@ dependencies {
9899
configurationProperties(project(path: ":spring-boot-project:spring-boot-kafka", configuration: "configurationPropertiesMetadata"))
99100
configurationProperties(project(path: ":spring-boot-project:spring-boot-liquibase", configuration: "configurationPropertiesMetadata"))
100101
configurationProperties(project(path: ":spring-boot-project:spring-boot-mail", configuration: "configurationPropertiesMetadata"))
102+
configurationProperties(project(path: ":spring-boot-project:spring-boot-pulsar", configuration: "configurationPropertiesMetadata"))
101103
configurationProperties(project(path: ":spring-boot-project:spring-boot-reactor-netty", configuration: "configurationPropertiesMetadata"))
102104
configurationProperties(project(path: ":spring-boot-project:spring-boot-test-autoconfigure", configuration: "configurationPropertiesMetadata"))
103105
configurationProperties(project(path: ":spring-boot-project:spring-boot-testcontainers", configuration: "configurationPropertiesMetadata"))
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
plugins {
2+
id "java-library"
3+
id "org.springframework.boot.auto-configuration"
4+
id "org.springframework.boot.configuration-properties"
5+
id "org.springframework.boot.deployed"
6+
id "org.springframework.boot.docker-test"
7+
id "org.springframework.boot.optional-dependencies"
8+
}
9+
10+
description = "Spring Boot Pulsar"
11+
12+
dependencies {
13+
api(project(":spring-boot-project:spring-boot"))
14+
api("org.springframework.pulsar:spring-pulsar")
15+
16+
dockerTestImplementation(project(":spring-boot-project:spring-boot-test"))
17+
dockerTestImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support-docker"))
18+
dockerTestImplementation("org.testcontainers:junit-jupiter")
19+
dockerTestImplementation("org.testcontainers:pulsar")
20+
21+
optional("org.springframework.pulsar:spring-pulsar-reactive")
22+
23+
optional(project(":spring-boot-project:spring-boot-autoconfigure"))
24+
25+
testImplementation(project(":spring-boot-project:spring-boot-test"))
26+
testImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support"))
27+
testImplementation("com.github.ben-manes.caffeine:caffeine")
28+
testImplementation("org.springframework.pulsar:spring-pulsar-cache-provider-caffeine")
29+
30+
testRuntimeOnly("ch.qos.logback:logback-classic")
31+
}

0 commit comments

Comments
 (0)