diff --git a/README.md b/README.md index fb69722..7fdf85d 100644 --- a/README.md +++ b/README.md @@ -205,19 +205,23 @@ Execute the commands below to build from the source. ``` ./gradlew clean build -Pdebug= ``` -5. To debug the library with Ballerina language: +5. To run a group of tests: + ``` + ./gradlew clean test -Pgroups= + ``` +6. To debug the library with Ballerina language: ``` ./gradlew clean build -PbalJavaDebug= ``` -6. Publish ZIP artifact to the local `.m2` repository: +7. Publish ZIP artifact to the local `.m2` repository: ``` ./gradlew clean build publishToMavenLocal ``` -7. Publish the generated artifacts to the local Ballerina central repository: +8. Publish the generated artifacts to the local Ballerina central repository: ``` ./gradlew clean build -PpublishToLocalCentral=true ``` -8. Publish the generated artifacts to the Ballerina central repository: +9. Publish the generated artifacts to the Ballerina central repository: ``` ./gradlew clean build -PpublishToCentral=true ``` diff --git a/ballerina/build.gradle b/ballerina/build.gradle index 22b9d8b..3a5094f 100644 --- a/ballerina/build.gradle +++ b/ballerina/build.gradle @@ -180,10 +180,13 @@ publishing { updateTomlFiles.dependsOn copyStdlibs - test.dependsOn startIBMMQServer - build.finalizedBy stopIBMMQServer +build.dependsOn ":${packageName}-native:build" +build.dependsOn startIBMMQServer +build.finalizedBy stopIBMMQServer + +test.dependsOn ":${packageName}-native:build" +test.dependsOn startIBMMQServer +test.finalizedBy stopIBMMQServer -build.dependsOn ":ibm.ibmmq-native:build" -build.dependsOn "generatePomFileForMavenPublication" -publishToMavenLocal.dependsOn build publish.dependsOn build +publishToMavenLocal.dependsOn build