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:
CURRENT_VERSION=$(cat gradle.properties | grep version | cut -d "=" -f2)
ls -l $HOME/.m2/repository/io/accelerate/tdl-client-java/${CURRENT_VERSION}
At this point publishing to Maven Central from Gradle is only possible manually. Things might have changed, check this page: https://central.sonatype.org/publish/publish-portal-gradle/
Generate the Maven Central bundle:
./generateMavenCentralBundle.sh
Upload the bundle to Maven Central by clicking the "Publish Component" button. https://central.sonatype.com/publishing