-
Notifications
You must be signed in to change notification settings - Fork 74
Add spring boot starter module #56
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
= Spring Pulsar Sample Applications | ||
|
||
Sample applications that can be used to demonstrate and manually verify Spring Pulsar functionality. | ||
|
||
|
||
[[build-apps]] | ||
== Building | ||
To build the applications simply execute the following command from the `spring-pulsar-sample-apps` directory: | ||
[source,bash] | ||
---- | ||
../gradlew clean build | ||
---- | ||
|
||
[[run-apps]] | ||
== Running | ||
|
||
=== Pre-requisites | ||
**** | ||
* The components have all been built by following the <<build-apps>> steps. | ||
* Apache Pulsar standalone cluster available at `pulsar://localhost:6650` | ||
|
||
TIP: The included link:../tools/pulsar/docker/README.adoc#_start_pulsar[Pulsar tools] can be used to easily start a standalone cluster locally on the required coordinates | ||
**** | ||
|
||
=== Steps | ||
Make sure the above pre-requisites are satisfied and that you are in the `spring-pulsar-sample-apps` directory and follow the steps below. | ||
|
||
=== App1 | ||
To start the link:./src/main/java/app1/SpringPulsarBootApp.java[SpringPulsarBootApp] run the following command: | ||
[source,bash] | ||
---- | ||
../gradlew bootRun -PsampleMainClass='app1.SpringPulsarBootApp' | ||
---- | ||
|
||
=== App2 | ||
To start the link:./src/main/java/app2/FailoverConsumerApp.java[FailoverConsumerApp] run the following command: | ||
[source,bash] | ||
---- | ||
../gradlew bootRun -PsampleMainClass='app2.FailoverConsumerApp' | ||
---- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,24 @@ | ||
plugins { | ||
id 'org.springframework.pulsar.spring-module' | ||
id 'org.springframework.boot' version '2.7.2' | ||
} | ||
|
||
description = 'Spring Pulsar Sample Applications' | ||
|
||
dependencies { | ||
api project(':spring-pulsar-spring-boot-autoconfigure') | ||
api project(':spring-pulsar-spring-boot-starter') | ||
implementation 'com.google.code.findbugs:jsr305' | ||
} | ||
|
||
ext { | ||
sampleMainClass = project.hasProperty("sampleMainClass") ? | ||
project.getProperty("sampleMainClass") : "app1.SpringPulsarBootApp" | ||
} | ||
|
||
springBoot { | ||
mainClass = sampleMainClass | ||
} | ||
|
||
project.afterEvaluate { | ||
project.tasks.artifactoryPublish.enabled(false) | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
plugins { | ||
id 'org.springframework.pulsar.spring-module' | ||
} | ||
|
||
description = 'Spring Pulsar Spring Boot Starter' | ||
|
||
dependencies { | ||
api project (':spring-pulsar-spring-boot-autoconfigure') | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[UNRELATED] Went ahead and bumped versions in this PR