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
Java client to connect to the central kata server.
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.
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
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 Staging repo
./gradlew publish
A Staging repository is created automatically: https://oss.sonatype.org/#stagingRepositories
To promote to the Live repo, do the following:
- "Close" the Staging repo, Sonatype Lift will scan the repo for vuln, check the email
- "Refresh" the Staging repos
- "Release" the repo
- wait between 15 mins and up to 2 hours for the new version to appear in Central
- check: https://repo1.maven.org/maven2/ro/ghionoiu/tdl-client-java/