Skip to content

Commit

Permalink
[MDEP-965] javax.json --> jakarta.json (#461)
Browse files Browse the repository at this point in the history
* javax.json --> jakarta.json
  • Loading branch information
elharo authored Nov 12, 2024
1 parent d77623d commit cf3c45c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -311,15 +311,15 @@ under the License.
<scope>test</scope>
</dependency>
<dependency>
<groupId>javax.json</groupId>
<artifactId>javax.json-api</artifactId>
<version>1.1.4</version>
<groupId>jakarta.json</groupId>
<artifactId>jakarta.json-api</artifactId>
<version>2.0.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.glassfish</groupId>
<artifactId>javax.json</artifactId>
<version>1.1.4</version>
<artifactId>jakarta.json</artifactId>
<version>2.0.1</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@
*/
package org.apache.maven.plugins.dependency.tree;

import javax.json.Json;
import javax.json.JsonArray;
import javax.json.JsonObject;
import javax.json.JsonReader;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
Expand All @@ -38,6 +33,10 @@
import java.util.Set;
import java.util.stream.Collectors;

import jakarta.json.Json;
import jakarta.json.JsonArray;
import jakarta.json.JsonObject;
import jakarta.json.JsonReader;
import org.apache.maven.artifact.Artifact;
import org.apache.maven.execution.MavenSession;
import org.apache.maven.plugin.LegacySupport;
Expand Down Expand Up @@ -190,6 +189,7 @@ public void testTreeJsonCircularDependency() throws IOException {
public void testTreeJsonParsing() throws Exception {
List<String> contents = runTreeMojo("tree2.json", "json");

System.setProperty("jakarta.json.provider", "org.glassfish.json.JsonProviderImpl");
try (JsonReader reader = Json.createReader(new StringReader(String.join("\n", contents)))) {
JsonObject root = reader.readObject();

Expand Down

0 comments on commit cf3c45c

Please sign in to comment.