Skip to content

Commit

Permalink
Add the bcutil dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Bhashinee committed Jul 5, 2024
1 parent 1eadac7 commit 81e3a32
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 2 deletions.
1 change: 1 addition & 0 deletions gradle/javaLibsProject.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ dependencies {
dist 'org.wso2.transport.http:org.wso2.transport.http.netty:6.3.51'
dist 'org.bouncycastle:bcprov-jdk18on:1.78.1'
dist 'org.bouncycastle:bcpkix-jdk18on:1.78.1'
dist 'org.bouncycastle:bcutil-jdk18on:1.78.1'

dist 'info.picocli:picocli:4.0.1'
dist 'org.apache.kafka:kafka-clients:2.8.2'
Expand Down
1 change: 1 addition & 0 deletions gradle/javaProject.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ dependencies {
implementation 'org.apache.thrift:libthrift:0.14.1'
implementation 'org.bouncycastle:bcprov-jdk18on:1.78.1'
implementation 'org.bouncycastle:bcpkix-jdk18on:1.78.1'
implementation 'org.bouncycastle:bcutil-jdk18on:1.78.1'
implementation 'org.bytedeco.javacpp-presets:llvm-platform:6.0.1-1.4.2'
implementation 'org.codehaus.plexus:plexus-utils:3.0.8'
implementation 'org.eclipse.lsp4j:org.eclipse.lsp4j:0.8.1'
Expand Down
7 changes: 7 additions & 0 deletions stdlib/grpc/src/main/ballerina/Ballerina.toml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,13 @@ target = "java8"
path = "./lib/bcpkix-jdk18on-1.78.1.jar"
groupId = "org.bouncycastle"
modules = ["grpc"]

[[platform.libraries]]
artifactId = "bcutil-jdk18on"
version = "1.78.1"
path = "./lib/bcutil-jdk18on-1.78.1.jar"
groupId = "org.bouncycastle"
modules = ["grpc"]

[[platform.libraries]]
artifactId = "netty-tcnative-classes"
Expand Down
3 changes: 2 additions & 1 deletion stdlib/http/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ dependencies {
implementation 'org.apache.commons:commons-lang3'
implementation 'org.jvnet.mimepull:mimepull'
implementation 'org.bouncycastle:bcprov-jdk18on'
implementation 'org.bouncycastle:bcpkix-jdk15on'
implementation 'org.bouncycastle:bcpkix-jdk18on'
implementation 'org.bouncycastle:bcutil-jdk18on'
testCompile project(path: ':ballerina-mime', configuration: 'tests')
testCompile project(path: ':ballerina-test-common', configuration: 'tests')
testCompile project(path: ':ballerina-test-utils', configuration: 'shadow')
Expand Down
9 changes: 8 additions & 1 deletion stdlib/http/src/main/ballerina/Ballerina.toml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,14 @@ target = "java8"
[[platform.libraries]]
artifactId = "bcpkix-jdk18on"
version = "1.78.1"
path = "./lib/bcpkix-jdk15on-1.78.1.jar"
path = "./lib/bcpkix-jdk18on-1.78.1.jar"
groupId = "org.bouncycastle"
modules = ["http"]

[[platform.libraries]]
artifactId = "bcutil-jdk18on"
version = "1.78.1"
path = "./lib/bcutil-jdk18on-1.78.1.jar"
groupId = "org.bouncycastle"
modules = ["http"]

Expand Down
7 changes: 7 additions & 0 deletions stdlib/mime/src/main/ballerina/Ballerina.toml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,13 @@ target = "java8"
groupId = "org.bouncycastle"
modules = ["mime"]

[[platform.libraries]]
artifactId = "bcutil-jdk18on"
version = "1.78.1"
path = "./lib/bcutil-jdk18on-1.78.1.jar"
groupId = "org.bouncycastle"
modules = ["mime"]

[[platform.libraries]]
artifactId = "bcpkix-jdk15on"
version = "1.78"
Expand Down
7 changes: 7 additions & 0 deletions stdlib/websub/src/main/ballerina/Ballerina.toml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,13 @@ target = "java8"
path = "./lib/bcpkix-jdk15on-1.78.1.jar"
groupId = "org.bouncycastle"
modules = ["web-sub"]

[[platform.libraries]]
artifactId = "bcutil-jdk18on"
version = "1.78.1"
path = "./lib/bcutil-jdk18on-1.78.1.jar"
groupId = "org.bouncycastle"
modules = ["web-sub"]

[[platform.libraries]]
artifactId = "netty-tcnative-classes"
Expand Down
1 change: 1 addition & 0 deletions tests/ballerina-test-utils/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ shadowJar {
exclude(dependency('org.yaml:snakeyaml'))
exclude(dependency('org.bouncycastle:bcprov-jdk18on'))
exclude(dependency('org.bouncycastle:bcpkix-jdk18on'))
exclude(dependency('org.bouncycastle:bcutil-jdk18on'))
exclude(dependency('io.netty:netty-tcnative-boringssl-static'))
exclude(dependency('org.testng:testng'))
exclude(dependency('com.beust:jcommander'))
Expand Down

0 comments on commit 81e3a32

Please sign in to comment.