Add Pulsar 4.0.x compatibility tests (#967)

Adds the ability to specify the Pulsar client version when running
the samples apps. Uses this new capability to add entries to the
check-samples.yml compatability test matrix to include Pulsar
4.0.x.

See #923
This commit is contained in:
Chris Bono
2024-12-14 09:08:23 -06:00
committed by GitHub
parent d5b7cc8c49
commit e1324dc334
8 changed files with 37 additions and 9 deletions

View File

@@ -11,7 +11,7 @@ repositories {
}
def versionCatalog = extensions.getByType(VersionCatalogsExtension).named("libs")
def pulsarVersion = versionCatalog.findVersion("pulsar").orElseThrow().displayName
def pulsarVersion = project.properties['pulsarVersion'] ?: versionCatalog.findVersion("pulsar").orElseThrow().displayName
dependencies {
implementation "org.apache.pulsar:pulsar-client-all:${pulsarVersion}"