Ticket #20669: 20669.patch

File 20669.patch, 17.4 KB (added by taylor.smock, 4 years ago)
  • plugins/geotools/build.xml

    diff --git a/plugins/geotools/build.xml b/plugins/geotools/build.xml
    index dd994dd03..cd6799726 100644
    a b  
    11<?xml version="1.0" encoding="utf-8"?>
    2 <project name="geotools" default="dist" basedir=".">
     2  <project name="geotools" default="dist" basedir="." xmlns:ivy="antlib:org.apache.ivy.ant">
    33    <!-- enter the SVN commit message -->
    44    <property name="commit.message" value="Commit message"/>
    55    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
     
    1010    <property name="plugin.description" value="Provides parts of the GeoTools library for other JOSM plugins. Not meant to be installed directly by users, but rather as a dependency for other plugins."/>
    1111    <property name="plugin.icon" value="images/compass.png"/>
    1212    <property name="plugin.canloadatruntime" value="true"/>
    13     <property name="plugin.requires" value="jts;ejml;apache-commons"/>
     13    <property name="plugin.requires" value="ejml;apache-commons;jaxb;jts"/>
    1414    <property name="plugin.stage" value="20"/>
    1515
    1616    <!-- ** include targets that all plugins have in common ** -->
    1717    <import file="../build-common.xml"/>
    1818
     19    <target name="pre-compile" depends="fetch_dependencies">
     20        <!-- include fetch_dependencies task -->
     21    </target>
     22
    1923        <fileset id="plugin.requires.jars" dir="${plugin.dist.dir}">
    20         <include name="jts.jar"/>
    21         <include name="ejml.jar"/>
    2224        <include name="apache-commons.jar"/>
     25        <include name="ejml.jar"/>
     26        <include name="jaxb.jar"/>
     27        <include name="jts.jar"/>
    2328    </fileset>
    2429
    2530    <target name="merge-geotools-services">
  • new file plugins/geotools/ivy.xml

    diff --git a/plugins/geotools/ivy.xml b/plugins/geotools/ivy.xml
    new file mode 100644
    index 000000000..8db73f345
    - +  
     1<?xml version="1.0" encoding="utf-8"?>
     2<!-- License: GPL. For details, see LICENSE file. -->
     3<ivy-module version="2.0">
     4    <info organisation="org.openstreetmap.josm.plugins" module="geotools"/>
     5    <dependencies>
     6        <dependency org="org.geotools" name="gt-coverage" rev="${gt.version}" conf="default->default"/>
     7        <dependency org="org.geotools" name="gt-coverage-api" rev="${gt.version}" conf="default->default"/>
     8        <dependency org="org.geotools" name="gt-epsg-extension" rev="${gt.version}" conf="default->default"/>
     9        <dependency org="org.geotools" name="gt-epsg-hsql" rev="${gt.version}" conf="default->default"/>
     10        <dependency org="org.geotools" name="gt-geotiff" rev="${gt.version}" conf="default->default"/>
     11        <dependency org="org.geotools" name="gt-main" rev="${gt.version}" conf="default->default"/>
     12        <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"/>
     14        <dependency org="org.geotools" name="gt-referencing" rev="${gt.version}" conf="default->default"/>
     15        <dependency org="org.geotools" name="gt-shapefile" rev="${gt.version}" conf="default->default"/>
     16        <!-- Dependencies that were not needed in 22.0 (according to lib in svn) -->
     17        <exclude org="org.geotools" module="gt-imagemosaic"/>
     18        <!-- unnecessary dependencies -->
     19        <exclude org="com.github.spotbugs"/>
     20        <exclude org="org.geotools.demo"/>
     21        <!-- from jaxb plugin -->
     22        <exclude org="javax.xml.bind" module="jaxb-api" />
     23        <exclude org="javax.xml.bind" module="jaxb-runtime" />
     24        <!-- from ejml plugin -->
     25        <exclude org="org.ejml"/>
     26        <!-- from jts plugin -->
     27        <exclude org="org.locationtech.jts" module="jts-core"/>
     28        <exclude org="org.locationtech.jts.io" module="jts-io-common"/>
     29        <!-- from apache-commons plugin -->
     30        <exclude org="com.github.luben" module="zstd-jni"/>
     31        <exclude org="org.apache.commons" module="commons-collections4"/>
     32        <exclude org="org.apache.commons" module="commons-compress"/>
     33        <exclude org="org.apache.commons" module="commons-imaging"/>
     34        <exclude org="commons-io" module="commons-io"/>
     35        <exclude org="commons-logging" module="commons-logging"/>
     36        <exclude org="org.apache.commons" module="commons-lang3"/>
     37        <exclude org="org.apache.commons" module="commons-math3"/>
     38        <exclude org="org.apache.commons" module="commons-text"/>
     39        <exclude org="org.brotli" module="dec"/>
     40        <exclude org="org.tukaani" module="xz"/>
     41    </dependencies>
     42</ivy-module>
  • new file plugins/geotools/ivy_settings.xml

    diff --git a/plugins/geotools/ivy_settings.xml b/plugins/geotools/ivy_settings.xml
    new file mode 100644
    index 000000000..2b72509ae
    - +  
     1<?xml version="1.0" encoding="utf-8"?>
     2<ivysettings>
     3  <include file="../../core/ivysettings.xml"/>
     4  <property name="gt.version" value="26.1"/>
     5  <settings defaultResolver="ordered-resolvers"/>
     6  <resolvers>
     7    <chain name="ordered-resolvers">
     8      <resolver ref="josm-nexus"/>
     9      <ibiblio name="osgeo" m2compatible="true" root="https://repo.osgeo.org/repository/release/" />
     10      <ibiblio name="central" m2compatible="true" root="https://repo1.maven.org/maven2/" />
     11    </chain>
     12  </resolvers>
     13</ivysettings>
     14