Skip to content

Commit

Permalink
Add missing dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ayeshLK committed Nov 10, 2023
1 parent ad0c30c commit 0ceb868
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ballerina/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,28 @@ dependencies {
externalJars(group: 'com.ibm.mq', name: 'com.ibm.mq.allclient', version: "${ibmMQVersion}") {
transitive = false
}
/* Jackson dependencies */
externalJars(group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: "${jacksonVersion}") {
transitive = false
}
externalJars(group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: "${jacksonVersion}") {
transitive = false
}
externalJars(group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: "${jacksonVersion}") {
transitive = false
}
}

task updateTomlFiles {
doLast {
def stdlibDependentIbmMQVersion = project.ibmMQVersion
def stdlibDependentJsonVersion = project.jsonVersion
def stdlibDependentJacksonVersion = project.jacksonVersion;
def newConfig = ballerinaTomlFilePlaceHolder.text.replace("@project.version@", project.version)
newConfig = newConfig.replace("@toml.version@", tomlVersion)
newConfig = newConfig.replace("@ibmmq.version@", stdlibDependentIbmMQVersion)
newConfig = newConfig.replace("@json.version@", stdlibDependentJsonVersion)
newConfig = newConfig.replace("@jackson.version@", stdlibDependentJacksonVersion)
ballerinaTomlFile.text = newConfig
}
}
Expand Down
18 changes: 18 additions & 0 deletions build-config/resources/Ballerina.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,21 @@ groupId = "com.ibm.mq"
artifactId = "com.ibm.mq.allclient"
version = "@ibmmq.version@"
path = "./lib/[email protected]@.jar"

[[platform.java17.dependency]]
groupId = "com.fasterxml.jackson.core"
artifactId = "jackson-annotations"
version = "@jackson.version@"
path = "./lib/[email protected]@.jar"

[[platform.java17.dependency]]
groupId = "com.fasterxml.jackson.core"
artifactId = "jackson-core"
version = "@jackson.version@"
path = "./lib/[email protected]@.jar"

[[platform.java17.dependency]]
groupId = "com.fasterxml.jackson.core"
artifactId = "jackson-databind"
version = "@jackson.version@"
path = "./lib/[email protected]@.jar"
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ ballerinaGradlePluginVersion=2.0.1
# IBM MQ dependencies
ibmMQVersion=9.3.4.0
jsonVersion=20231013
jacksonVersion=2.15.3

#stdlib dependencies

Expand Down

0 comments on commit 0ceb868

Please sign in to comment.