Use dynamic version for Pulsar docs link (#776)
Prior to this commit, the version number used in the Pulsar docs link was hardcoded to `3.2.x`. Now the version number is derived from the Pulsar client lib version specified in libs.version.toml.
This commit is contained in:
@@ -30,9 +30,11 @@ def generateAttributes() {
|
||||
def springFrameworkVersion = versionCatalog.findVersion("spring").orElseThrow().displayName
|
||||
def springCloudStreamVersion = versionCatalog.findVersion("spring-cloud-stream").orElseThrow().displayName
|
||||
def pulsarClientVersion = versionCatalog.findVersion("pulsar").orElseThrow().displayName
|
||||
def pulsarClientVersionFamily = pulsarClientVersion.tokenize(".")[0] + "." + pulsarClientVersion.tokenize(".")[1] + ".x"
|
||||
def pulsarClientReactiveVersion = versionCatalog.findVersion("pulsar-reactive").orElseThrow().displayName
|
||||
return ['is-snapshot-version': project.version.endsWith("-SNAPSHOT"),
|
||||
'pulsar-client-version': pulsarClientVersion ?: 'current',
|
||||
'pulsar-client-version-family': pulsarClientVersionFamily ?: 'current',
|
||||
'pulsar-client-reactive-version': pulsarClientReactiveVersion ?: 'current',
|
||||
'spring-boot-version': springBootVersionForDocs ?: 'current',
|
||||
'spring-cloud-stream-version': springCloudStreamVersion ?: 'current',
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
:spring-cloud-stream-version: current
|
||||
:spring-pulsar-version: current
|
||||
:pulsar-client-version: current
|
||||
:pulsar-client-version-family: current
|
||||
:pulsar-client-reactive-version: current
|
||||
:is-snapshot-version: false
|
||||
|
||||
@@ -14,7 +15,7 @@
|
||||
:spring-cloud-stream-docs: https://docs.spring.io/spring-cloud-stream/docs/{spring-cloud-stream-version}/reference/html/
|
||||
:spring-cloud-function: https://spring.io/projects/spring-cloud-function
|
||||
|
||||
:apache-pulsar-docs: https://pulsar.apache.org/docs/3.2.x
|
||||
:apache-pulsar-docs: https://pulsar.apache.org/docs/{pulsar-client-version-family}
|
||||
:apache-pulsar-cient-docs: {apache-pulsar-docs}/client-libraries-java
|
||||
:apache-pulsar-io-docs: {apache-pulsar-docs}/io-connectors
|
||||
:apache-pulsar-function-docs: {apache-pulsar-docs}/functions-overview
|
||||
|
||||
Reference in New Issue
Block a user