Ignore:
Timestamp:
2023-10-19T21:58:56+02:00 (12 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
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.