Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Pulsar Binder to Spring Cloud Stream #1322

Closed
wants to merge 1 commit into from

Conversation

onobc
Copy link
Contributor

@onobc onobc commented Oct 21, 2023

This commit ensures the Spring Cloud Stream Pulsar binder dependency is automatically added when the user chooses Spring Boot >= 3.2.0-M3 and adds the Pulsar and Cloud Stream dependencies.

This was not an issue in the older Spring Pulsar 0.2.x offering because the binder was contained in the Spring Pulsar repo. Now the binder has been moved into SCSt proper, the binder dependency must be added as well. I missed this detail in my original update to Pulsar/Boot32.

This commit ensures the Spring Cloud Stream Pulsar binder dependency is
automatically added when the user chooses Spring Boot >= 3.2.0-M3 and
adds the Pulsar and Cloud Stream dependencies.
@@ -85,6 +89,19 @@ void springCloudStreamWithKafkaStreams(Version springBootVersion, Dependency tes
.hasDependenciesSize(5);
}

@ParameterizedTest
@MethodSource("springCloudStreamWithPulsarArguments")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not super excited of screaming "...WithPulsar" here but the variations we are now trying to test are:

  • Boot 2.7.x (the test binder deps differ across 2.x and 3.x)
  • Boot 3.x (test test binder deps differ across 2.x and 3.x)
  • Boot 3.2.0-M3++ (new binder was added here)

Because the Pulsar binder does not exist <=3.2.0-M3 we can simply add more args to the test params for boot32x as the behavior is additive (iow new binder dep).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not a big fan of those either. I've polished to make it short for now. We can revisit those tests once we remove support for 2.x which is soon.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Oct 21, 2023
@snicoll snicoll added type: enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Oct 23, 2023
@snicoll snicoll self-assigned this Oct 23, 2023
snicoll pushed a commit that referenced this pull request Oct 23, 2023
This commit ensures the Spring Cloud Stream Pulsar binder dependency is
automatically added when the user chooses Spring Boot >= 3.2.0-M3 and
adds the Pulsar and Cloud Stream dependencies.

See gh-1322
snicoll added a commit that referenced this pull request Oct 23, 2023
@snicoll snicoll closed this in f627a54 Oct 23, 2023
@onobc onobc deleted the cbono-update-pulsar-binder-deps branch October 23, 2023 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants