Ignore:
Timestamp:
2023-10-19T21:58:56+02:00 (13 months ago)
Author:
taylor.smock
Message:

Fix error_prone version issue and dependency updates (see #23218)

Plugins with an ivy_settings.xml file were not reading the error_prone version
from the core ivysettings.xml file. This removes redundant ivy_settings.xml files
and includes the core ivysettings.xml file in the remaining ivy_settings.xml
files.

Dependency updates:
apache-commons:

  • zstd-jni: 1.5.2-5 -> 1.5.5-6
  • commons-compress: 1.22 -> 1.24.0
  • commons-io: 2.11.0 -> 2.14.0
  • commons-lang3: 3.12.0 -> 3.13.0

apache-http:

  • httpclient5: 5.1.2 -> 5.2.1
  • Drops legacy httpcore, httpclient, and httpmime dependencies

ejml: 0.41 -> 0.43.1

  • ejml now requires Java 11

flatlaf: 3.2 -> 3.2.2
geotools: 28.2 -> 30.0

  • geotools now requires Java 11
  • 30.0 had some breaking API changes, but provided a migration script

jackson: 2.14.0 -> 2.15.3
jna: 5.12.1 -> 5.13.0
log4j: 2.19.0 -> 2.21.0
lwjgl: 3.3.1 -> 3.3.3
pbf:

  • protobuf-java: 3.20.3 -> 3.24.4
Location:
applications/editors/josm/plugins/geotools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/geotools/build.xml

    r36028 r36176  
    1313    <property name="plugin.requires" value="apache-commons;ejml;jackson;jaxb;jts"/>
    1414    <property name="plugin.stage" value="20"/>
     15    <property name="plugin.minimum.java.version" value="11"/>
    1516
    1617    <!-- ** include targets that all plugins have in common ** -->
  • applications/editors/josm/plugins/geotools/ivy.xml

    r36024 r36176  
    1111        <dependency org="org.geotools" name="gt-main" rev="${gt.version}" conf="default->default"/>
    1212        <dependency org="org.geotools" name="gt-metadata" rev="${gt.version}" conf="default->default"/>
    13         <dependency org="org.geotools" name="gt-opengis" rev="${gt.version}" conf="default->default"/>
     13        <dependency org="org.geotools" name="gt-api" rev="${gt.version}" conf="default->default"/>
    1414        <dependency org="org.geotools" name="gt-referencing" rev="${gt.version}" conf="default->default"/>
    1515        <dependency org="org.geotools" name="gt-shapefile" rev="${gt.version}" conf="default->default"/>
  • applications/editors/josm/plugins/geotools/ivy_settings.xml

    r36068 r36176  
    22<ivysettings>
    33  <!-- When geotools is updated, run `ant merge-geotools-services` -->
    4   <property name="gt.version" value="28.2"/>
     4  <property name="gt.version" value="30.0"/>
     5  <include file="${josm.ivysettings}" optional="true" /> <!-- optional for IDEs -->
    56  <settings defaultResolver="ordered-resolvers"/>
    67  <resolvers>
  • applications/editors/josm/plugins/geotools/src/org/openstreetmap/josm/plugins/geotools/GeoToolsPlugin.java

    r36015 r36176  
    44import java.io.IOException;
    55import java.io.InputStream;
     6import java.util.Collection;
    67import java.util.Iterator;
    78import java.util.ServiceLoader;
     
    1516import org.geotools.image.ImageWorker;
    1617import org.geotools.referencing.CRS;
    17 import org.opengis.referencing.FactoryException;
    18 import org.opengis.referencing.NoSuchAuthorityCodeException;
     18import org.geotools.api.referencing.FactoryException;
     19import org.geotools.api.referencing.NoSuchAuthorityCodeException;
    1920import org.openstreetmap.josm.plugins.Plugin;
    2021import org.openstreetmap.josm.plugins.PluginInformation;
     
    102103
    103104    private static void checkEPSG() {
     105        final Collection<String> codes = CRS.getSupportedCodes("EPSG");
     106        if (codes.isEmpty() || !(codes.contains("4326") || codes.contains("EPSG:4326"))) {
    104107        try {
    105             CRS.decode("EPSG:4326");
    106         } catch (NoSuchAuthorityCodeException e) {
    107             Logging.error("geotools: error in EPSG database initialization. NoSuchAuthorityCodeException: "+e.getMessage());
    108         } catch (FactoryException e) {
    109             Logging.error("geotools: error in EPSG database initialization. FactoryException: "+e.getMessage());
     108                CRS.decode("EPSG:4326");
     109            } catch (NoSuchAuthorityCodeException e) {
     110                Logging.error("geotools: error in EPSG database initialization. NoSuchAuthorityCodeException: " + e.getMessage());
     111            } catch (FactoryException e) {
     112                Logging.error("geotools: error in EPSG database initialization. FactoryException: " + e.getMessage());
     113            }
    110114        }
    111115    }
Note: See TracChangeset for help on using the changeset viewer.