Changeset 18723 in josm for trunk/scripts


Ignore:
Timestamp:
2023-05-10T19:18:54+02:00 (21 months ago)
Author:
taylor.smock
Message:

Fix #22432, see #22941: Start migrating from javax to jakarta

Parsson was split out from the JSONP repository in 2021 (see
https://github.com/jakartaee/jsonp-api/issues/285 ). It is the default provider,
and will "just work" without additional configuration.

Many plugins use javax.json, so the scheduled removal of the javax.json
dependencies is set to milestone:"24.12" (see #22941).

Changes between javax.json and jakarta.json 2.0:

  • Rename of javax.json to jakarta.json
  • Some additional bug fixes

This will enable us to move easily to jakarta.json 2.1 in the future.
The changes of note with 2.1 includes:

  • Better handling of duplicated keys
  • Additional APIs around primitive types
  • API to get current event from JsonParser

We cannot currently move to jakarta.json 2.1 since it requires Java 11+.

Location:
trunk/scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/SyncEditorLayerIndex.java

    r18382 r18723  
    3838import java.util.stream.Collectors;
    3939
    40 import javax.json.Json;
    41 import javax.json.JsonArray;
    42 import javax.json.JsonNumber;
    43 import javax.json.JsonObject;
    44 import javax.json.JsonReader;
    45 import javax.json.JsonString;
    46 import javax.json.JsonValue;
     40import jakarta.json.Json;
     41import jakarta.json.JsonArray;
     42import jakarta.json.JsonNumber;
     43import jakarta.json.JsonObject;
     44import jakarta.json.JsonReader;
     45import jakarta.json.JsonString;
     46import jakarta.json.JsonValue;
    4747
    4848import org.openstreetmap.gui.jmapviewer.Coordinate;
  • trunk/scripts/TagInfoExtract.java

    r18051 r18723  
    3232
    3333import javax.imageio.ImageIO;
    34 import javax.json.Json;
    35 import javax.json.JsonArrayBuilder;
    36 import javax.json.JsonObjectBuilder;
    37 import javax.json.JsonWriter;
    38 import javax.json.stream.JsonGenerator;
     34import jakarta.json.Json;
     35import jakarta.json.JsonArrayBuilder;
     36import jakarta.json.JsonObjectBuilder;
     37import jakarta.json.JsonWriter;
     38import jakarta.json.stream.JsonGenerator;
    3939
    4040import org.openstreetmap.josm.actions.DeleteAction;
Note: See TracChangeset for help on using the changeset viewer.