Skip to content

Commit

Permalink
Pack time-native dependency to the bala
Browse files Browse the repository at this point in the history
  • Loading branch information
ayeshLK committed Dec 19, 2024
1 parent 820a611 commit 1d900ab
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ballerina/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,19 @@ ballerina {
platform = "java17"
}

configurations {
externalJars
}

dependencies {
externalJars(group: 'io.ballerina.stdlib', name: 'time-native', version: "${stdlibTimeVersion}")
}

task updateTomlFiles {
doLast {
def newBallerinaToml = ballerinaTomlFilePlaceHolder.text.replace("@project.version@", project.version)
newBallerinaToml = newBallerinaToml.replace("@toml.version@", tomlVersion)
newBallerinaToml = newBallerinaToml.replace('@time.native.version@', project.stdlibTimeVersion)
ballerinaTomlFile.text = newBallerinaToml
}
}
Expand Down
6 changes: 6 additions & 0 deletions build-config/resources/Ballerina.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,9 @@ groupId = "io.ballerina.lib"
artifactId = "aws.marketplace.mpe-native"
version = "@project.version@"
path = "../native/build/libs/[email protected]@.jar"

[[platform.java17.dependency]]
groupId = "io.ballerina.stdlib"
artifactId = "time-native"
version = "@time.native.version@"
path = "./lib/[email protected]@.jar"

0 comments on commit 1d900ab

Please sign in to comment.