Skip to content

Commit

Permalink
Switch to javax jsonp
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkec committed Aug 27, 2024
1 parent 16ef296 commit 783e19a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 18 deletions.
5 changes: 3 additions & 2 deletions maven-plugins/shade-extensions/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@
<artifactId>maven-shade-plugin</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.parsson</groupId>
<artifactId>parsson</artifactId>
<groupId>org.glassfish</groupId>
<artifactId>javax.json</artifactId>
<version>${version.lib.jsonp-impl}</version>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,15 @@
import java.util.jar.JarEntry;
import java.util.jar.JarOutputStream;

import jakarta.json.Json;
import jakarta.json.JsonArray;
import jakarta.json.JsonArrayBuilder;
import jakarta.json.JsonValue;
import javax.json.Json;
import javax.json.JsonArray;
import javax.json.JsonArrayBuilder;
import javax.json.JsonValue;

import static java.nio.charset.StandardCharsets.UTF_8;

class JsonArrayAggregator implements Aggregator {

private static final String REJECT_ALL_PATTERN = "!*";
private final String path;
private final JsonArrayBuilder arrayBuilder = Json.createArrayBuilder();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
import java.util.jar.JarInputStream;
import java.util.jar.JarOutputStream;

import jakarta.json.Json;
import jakarta.json.JsonArray;
import jakarta.json.JsonObject;
import jakarta.json.JsonWriterFactory;
import jakarta.json.stream.JsonGenerator;
import javax.json.Json;
import javax.json.JsonArray;
import javax.json.JsonObject;
import javax.json.JsonWriterFactory;
import javax.json.stream.JsonGenerator;
import org.junit.jupiter.api.Test;

import static io.helidon.build.maven.shade.HelidonServiceTransformer.CONFIG_METADATA_PATH;
Expand Down
6 changes: 0 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@
<version.lib.wagon-http>3.5.3</version.lib.wagon-http>
<version.lib.commons-text>1.10.0</version.lib.commons-text>
<version.lib.maven-shade-plugin>3.5.1</version.lib.maven-shade-plugin>
<version.lib.parsson>1.1.7</version.lib.parsson>

<!--
!Version statement! - end
Expand Down Expand Up @@ -949,11 +948,6 @@
<artifactId>maven-shade-plugin</artifactId>
<version>${version.lib.maven-shade-plugin}</version>
</dependency>
<dependency>
<groupId>org.eclipse.parsson</groupId>
<artifactId>parsson</artifactId>
<version>${version.lib.parsson}</version>
</dependency>
</dependencies>
</dependencyManagement>

Expand Down

0 comments on commit 783e19a

Please sign in to comment.