Override Spring Boot Dependencies
When using Spring for Apache Pulsar in a Spring Boot application, the Apache Pulsar dependency versions are determined by Spring Boot’s dependency management.
If you wish to use a different version of pulsar-client-all you need to override their version used by Spring Boot dependency management; set the pulsar.version property.
Or, to use a different Spring for Apache Pulsar version with a supported Spring Boot version, set the spring-pulsar.version property.
In the following example, snapshot version of the Pulsar clients and Spring for Apache Pulsar are being used.
Gradle
ext['pulsar.version'] = '4.4.2-SNAPSHOT'
ext['spring-pulsar.version'] = '2.0.1-SNAPSHOT'
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-pulsar'
}
-
Maven
<properties>
<pulsar.version>4.4.2-SNAPSHOT</pulsar.version>
<spring-pulsar.version>2.0.1-SNAPSHOT</spring-pulsar.version>
</properties>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-pulsar</artifactId>
</dependency>