Skip to content

julianghionoiu/tdl-client-java

Repository files navigation

Java Version Maven Version

Submodules

Project contains submodules as mentioned in the .gitmodules file:

  • broker
  • src/test/resources/tdl/client (gets cloned into src/test/resources/acceptance)
  • wiremock

Use the below command to update the submodules of the project:

git submodule update --init

Getting started

Java client to connect to the central kata server.

Manual

To run the acceptance tests, start the WireMock servers:

python3 wiremock/wiremock-wrapper.py start 41375
python3 wiremock/wiremock-wrapper.py start 8222

And the broker, with:

python3 broker/activemq-wrapper.py start

Stopping the above services would be the same, using the stop command instead of the start command.

Automatic (via script)

Start and stop the wiremocks and broker services with the below:

./startExternalDependencies.sh
./stopExternalDependencies.sh

Then run the tests in RunAllAcceptanceTest.java via the CLI:

./gradlew test

Or via the IDE

Release

Configure the version inside the "gradle.properties" file

Create publishing bundle into Maven Local

./gradlew publishToMavenLocal

Check Maven Local contains release version:

ls -l /Users/julianghionoiu/.m2/repository/ro/ghionoiu/tdl-client-java/$(cat gradle.properties | grep version | cut -d "=" -f2)

Publish to Maven Central Staging repo

Publish to Maven Central

Publish to Maven Central Staging repo

./gradlew publish

A Staging repository is created automatically: https://oss.sonatype.org/#stagingRepositories

To promote to the Live repo, do the following:

About

Sample ActiveMq clients to help warmup the competition.

Resources

License

Stars

Watchers

Forks

Packages

No packages published