Skip to content

Commit

Permalink
[Docs] Add version compatibility appendix (spring-projects#409)
Browse files Browse the repository at this point in the history
  • Loading branch information
onobc authored May 27, 2023
1 parent 50b54f9 commit 60dac79
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 12 deletions.
5 changes: 4 additions & 1 deletion spring-pulsar-docs/spring-pulsar-docs.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,13 @@ tasks.withType(org.asciidoctor.gradle.jvm.AbstractAsciidoctorTask) {
}
doFirst {
attributes "spring-boot-version": project.springBootVersion ?: 'current',
"spring-framework-version": project.springFrameworkVersion ?: 'current',
"spring-cloud-stream-version": project.springCloudStreamVersion ?: 'current',
"spring-pulsar-version": project.version,
"spring-pulsar-binder-version": project.springPulsarBinderVersion ?: 'current',
"spring-pulsar-starter-version": project.springPulsarStarterVersion ?: 'current'
"spring-pulsar-starter-version": project.springPulsarStarterVersion ?: 'current',
"pulsar-client-version": project.pulsarClientVersion ?: 'current',
"pulsar-client-reactive-version": project.pulsarClientReactiveVersion ?: 'current'
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
:spring-boot-version: current
:spring-framework-version: current
:spring-cloud-stream-version: current
:spring-pulsar-version: current
:spring-pulsar-binder-version: current
:spring-pulsar-starter-version: current
:pulsar-client-version: current
:pulsar-client-reactive-version: current

:github: https://github.com/spring-projects/spring-pulsar
:javadocs: https://docs.spring.io/spring-pulsar/docs/{spring-pulsar-version}/api
Expand Down
2 changes: 2 additions & 0 deletions spring-pulsar-docs/src/main/asciidoc/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ In addition to this reference documentation, we recommend a number of other reso
[[appendix]]
== Appendices

include::version-compatibility.adoc[leveloffset=+2]

include::non-ga-versions.adoc[leveloffset=+2]

include::native-image.adoc[leveloffset=+2]
30 changes: 19 additions & 11 deletions spring-pulsar-docs/src/main/asciidoc/intro.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,36 @@ This project provides a basic Spring-friendly API for developing https://pulsar.
On a very high level, Spring for Apache Pulsar provides a `PulsarTemplate` for publishing to a Pulsar topic and a `PulsarListener` annotation for consuming from a Pulsar topic.
In addition, it also provides various convenience APIs for Spring developers to ramp up their development journey into Apache Pulsar.

== Minimum Supported Versions
== Supported Versions

The minimum supported versions for the underlying libraries required by the framework are as follows:
The supported versions for the underlying libraries required by the framework are as follows:
|===
| Library | Version

| Java
| 17
| Library | Minimum Version | Version Used

| Apache Pulsar
| 2.10.0

| Spring Boot
| 3.0.0
| {pulsar-client-version}

| Spring Framework
| 6.0.0
| 6.0.9
| {spring-framework-version}

| Spring Boot
| 3.2.0
| {spring-boot-version}

| Java
| 17
| -

| Gradle
| 7.5
| 7.4
| -

|===

NOTE: The **Version Used** is the version of the library targeted by Spring Pulsar {spring-pulsar-version} (the version of the framework this reference guide belongs to).

== Building the Project
If you have cloned the project locally, follow these steps to build the project from the source code.

Expand Down
27 changes: 27 additions & 0 deletions spring-pulsar-docs/src/main/asciidoc/version-compatibility.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[appendix]
[[appendix.version-compatibility]]
= Pulsar Clients and Spring Boot Compatibility

include::attributes.adoc[]

The following is the compatibility matrix:
|===
| Spring for Apache Pulsar | Pulsar Client | Pulsar Reactive Client | Spring Boot | Java

| 1.0.x
| 3.0.x
| 0.3.x
| 3.2.x
| 17+

| 0.2.x
| 2.11.x
| 0.2.x
| 3.0.x / 3.1.x^**(*)**^
| 17+
|===


NOTE: In version `1.0.0` the auto-configuration moved into Spring Boot `3.2.x` and therefore `3.2.x` is the minimum Spring Boot version supported when using version `1.0.x` of the framework.
Prior to version `1.0.0`, the auto-configuration support exists in the framework itself.
^**(*)**^This makes it theoretically possible to use later versions of Spring Boot besides `3.0.x` which it is tested against and guaranteed to work with. In other words, it may work with `3.1.x` but it has not been tested against it.

0 comments on commit 60dac79

Please sign in to comment.