Skip to content

Commit

Permalink
Merge pull request #50 from ayeshLK/build-ins
Browse files Browse the repository at this point in the history
Restructure package build and update readme
  • Loading branch information
ayeshLK authored Aug 27, 2024
2 parents 95422a8 + a9b5ee3 commit 7b48395
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,19 +205,23 @@ Execute the commands below to build from the source.
```
./gradlew clean build -Pdebug=<port>
```
5. To debug the library with Ballerina language:
5. To run a group of tests:
```
./gradlew clean test -Pgroups=<test_group_names>
```
6. To debug the library with Ballerina language:
```
./gradlew clean build -PbalJavaDebug=<port>
```
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
```
Expand Down
13 changes: 8 additions & 5 deletions ballerina/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7b48395

Please sign in to comment.