Skip to content

Commit

Permalink
Merge pull request #517 from ballerina-platform/change-jakarta-api
Browse files Browse the repository at this point in the history
Change `jakarta.activation` to `jakarta.activation-api`
  • Loading branch information
TharmiganK authored Sep 8, 2023
2 parents ddf5052 + 3ccd523 commit df7bead
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 11 deletions.
6 changes: 3 additions & 3 deletions ballerina/Ballerina.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ artifactId = "mimepull"
version = "1.9.11"

[[platform.java17.dependency]]
path = "./lib/jakarta.activation-2.0.1.jar"
groupId = "com.sun.activation"
artifactId = "jakarta.activation"
path = "./lib/jakarta.activation-api-2.0.1.jar"
groupId = "jakarta.activation"
artifactId = "jakarta.activation-api"
version = "2.0.1"
2 changes: 1 addition & 1 deletion ballerina/Dependencies.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

[ballerina]
dependencies-toml-version = "2"
distribution-version = "2201.8.0-20230726-145300-b2bdf796"
distribution-version = "2201.8.0-20230830-220400-8a7556d8"

[[package]]
org = "ballerina"
Expand Down
2 changes: 1 addition & 1 deletion ballerina/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ dependencies {
externalJars(group: 'org.jvnet.mimepull', name: 'mimepull', version: "${mimepullVersion}") {
transitive = false
}
externalJars(group: 'com.sun.activation', name: 'jakarta.activation', version: "${jakartaActivationVersion}") {
externalJars(group: 'jakarta.activation', name: 'jakarta.activation-api', version: "${jakartaActivationVersion}") {
transitive = false
}
}
Expand Down
6 changes: 3 additions & 3 deletions build-config/resources/Ballerina.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ artifactId = "mimepull"
version = "@mimepull.version@"

[[platform.java17.dependency]]
path = "./lib/[email protected]@.jar"
groupId = "com.sun.activation"
artifactId = "jakarta.activation"
path = "./lib/jakarta.activation-api-@[email protected]"
groupId = "jakarta.activation"
artifactId = "jakarta.activation-api"
version = "@jakarta.activation.version@"
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ This file contains all the notable changes done to the Ballerina MIME package th
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## Changed

- [Change `com.sun.activation:jakarta.activation` to `jakarta.activation:jakarta.activation-api`](https://github.com/ballerina-platform/ballerina-standard-library/issues/4789)

## [2.6.0] - 2022-02-20

## Fixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ protected static Object getAlreadyBuiltByteArray(BObject entityObj, Object messa
String charsetValue = MimeUtil.getContentTypeParamValue(contentTypeValue, CHARSET);
if (isNotNullAndEmpty(charsetValue)) {
return ValueCreator.createArrayValue(
StringUtils.getStringValue(messageDataSource, null).getBytes(charsetValue));
StringUtils.getStringValue(messageDataSource).getBytes(charsetValue));
}
return ValueCreator.createArrayValue(
StringUtils.getStringValue(messageDataSource, null).getBytes(Charset.defaultCharset()));
StringUtils.getStringValue(messageDataSource).getBytes(Charset.defaultCharset()));
}
return ValueCreator.createArrayValue(new byte[0]);
}
Expand Down
2 changes: 1 addition & 1 deletion test-utils/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ dependencies {
implementation group: 'io.ballerina.stdlib', name: 'io-native', version: "${stdlibIoVersion}"

implementation group: 'org.jvnet.mimepull', name: 'mimepull', version: "${mimepullVersion}"
implementation group: 'com.sun.activation', name: 'jakarta.activation', version: "${jakartaActivationVersion}"
implementation group: 'jakarta.activation', name: 'jakarta.activation-api', version: "${jakartaActivationVersion}"
implementation group: 'org.slf4j', name: 'slf4j-jdk14', version: "${slf4jVersion}"
}

Expand Down

0 comments on commit df7bead

Please sign in to comment.