source: osm/applications/editors/josm/plugins/geotools/build.xml@ 36380

Last change on this file since 36380 was 36273, checked in by taylor.smock, 9 months ago

Update plugin dependencies

Note that the minimum JOSM version has been bumped to the first version requiring
Java 11.

apache-commons:

  • zstd-jni: 1.5.5-6 to 1.5.6-3
  • commons-compress: 1.24.0 -> 1.26.2 -- this (almost) syncs with JOSM core (1.26.1 at time of writing)
  • commons-imaging: 1.0-alpha3 -> 1.0.0-alpha5
    • Fixes an issue where EXIF metadata is discarded when updating offsets (wrong calculation). This may be related to #11902.
  • commons-io: 2.14.0 -> 2.16.1
  • commons-logging: 1.2 -> 1.3.2
  • commons-lang3: 3.13.0 -> 3.14.0
  • commons-text: 1.10.0 -> 1.12.0

apache-http: 5.2.1 -> 5.3.1
geotools: 30.0 -> 31.1
jackson: 2.15.3 -> 2.17.1
jna: 5.13.0 -> 5.14.0
log4j: 2.21.0 -> 2.23.1

  • Property svn:mime-type set to text/xml
File size: 5.8 KB
RevLine 
[28592]1<?xml version="1.0" encoding="utf-8"?>
[36015]2 <project name="geotools" default="dist" basedir="." xmlns:ivy="antlib:org.apache.ivy.ant" xmlns:rsel="antlib:org.apache.tools.ant.types.resources.selectors">
[28592]3 <!-- enter the SVN commit message -->
4 <property name="commit.message" value="Commit message"/>
5 <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
[36273]6 <property name="plugin.main.version" value="19044"/>
[30734]7
[28995]8 <property name="plugin.author" value="Don-vip"/>
9 <property name="plugin.class" value="org.openstreetmap.josm.plugins.geotools.GeoToolsPlugin"/>
10 <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."/>
11 <property name="plugin.icon" value="images/compass.png"/>
[30999]12 <property name="plugin.canloadatruntime" value="true"/>
[35958]13 <property name="plugin.requires" value="apache-commons;ejml;jackson;jaxb;jts"/>
[28995]14 <property name="plugin.stage" value="20"/>
15
16 <!-- ** include targets that all plugins have in common ** -->
17 <import file="../build-common.xml"/>
[31755]18
[35898]19 <target name="pre-compile" depends="fetch_dependencies">
20 <!-- include fetch_dependencies task -->
21 </target>
22
[35958]23 <fileset id="plugin.requires.jars" dir="${plugin.dist.dir}">
[35898]24 <include name="apache-commons.jar"/>
25 <include name="ejml.jar"/>
26 <include name="jaxb.jar"/>
[31755]27 <include name="jts.jar"/>
[35959]28 <!-- jackson causes issues if it is on the compile-time path. Since we don't actually use jackson in our code, we can just not have it in the requires.jars array. -->
29 <!--<include name="jackson.jar"/>-->
[31755]30 </fileset>
[36015]31 <macrodef name="merge-text-files">
32 <attribute name="mergefile"/>
33 <attribute name="targetdir"/>
34 <sequential>
35 <concat destfile="@{targetdir}/@{mergefile}">
36 <restrict>
37 <rsel:name name="@{mergefile}"/>
38 <archives>
39 <zips>
40 <fileset dir="${plugin.lib.dir}" includes="*.jar" excludes="*-sources.jar, *-javadoc.jar" erroronmissingdir="no"/>
41 </zips>
42 </archives>
43 </restrict>
44 </concat>
45 </sequential>
46 </macrodef>
[31755]47
[35903]48 <target name="merge-geotools-services" depends="fetch_dependencies">
[32813]49 <taskdef resource="org/pescuma/mergeservices/antlib.xml" classpath="tools/merge-services.jar" />
[36028]50 <delete dir="jar/"/>
51 <mkdir dir="jar"/>
[35958]52 <merge-services dest="jar">
53 <fileset dir="lib">
54 <include name="**/*.jar" />
55 <exclude name="**/*-javadoc.jar" />
56 <exclude name="**/*-source.jar" />
57 </fileset>
58 </merge-services>
[36028]59 <!-- We currently don't like shipping maven pom files or other "useless" files (see #21667) -->
60 <delete includeEmptyDirs="true">
61 <fileset dir="jar">
62 <include name="META-INF/maven/**/*"/>
63 <include name="META-INF/maven"/>
64 <include name="META-INF/ECLIPSE*"/>
65 <include name="META-INF/eclipse*"/>
66 <include name="META-INF/INDEX.LIST"/>
67 <include name="META-INF/MANIFEST.MF"/>
68 <include name="META-INF/**/module-info.class"/>
69 </fileset>
70 </delete>
[36015]71
72 <merge-text-files mergefile="META-INF/javax.media.jai.registryFile.jai" targetdir="jar"/>
73 <merge-text-files mergefile="META-INF/registryFile.jai" targetdir="jar"/>
74 <merge-text-files mergefile="META-INF/registryFile.jaiext" targetdir="jar"/>
[32813]75 </target>
76
[28592]77 <!--
78 **********************************************************
[29013]79 ** post-dist - replaces files from the generated jar
[28592]80 **********************************************************
81 -->
[36028]82 <target name="post-dist" depends="merge-geotools-services">
[30734]83 <move file="${plugin.jar}" todir="${plugin.build.dir}" />
[31768]84 <jar destfile="${plugin.jar}" filesetmanifest="merge" manifestencoding="UTF-8">
[29013]85 <fileset dir="jar"/>
[30734]86 <zipfileset src="${plugin.build.dir}/${ant.project.name}.jar">
[29007]87 <exclude name="*.class"/>
[30734]88 <exclude name="*.html"/>
[29013]89 <exclude name="META-INF/**/*"/>
[29007]90 <exclude name="javax/*.txt"/>
[30734]91 </zipfileset>
92 <zipfileset src="${plugin.build.dir}/${ant.project.name}.jar">
93 <include name="META-INF/MANIFEST.MF"/>
[31599]94 <include name="META-INF/javax.media.jai.registryFile.jai"/>
[30734]95 </zipfileset>
96 </jar>
97 <delete file="${plugin.build.dir}/${ant.project.name}.jar" />
[36028]98 <delete dir="jar" />
[29007]99 </target>
[31744]100
101 <!--
102 **********************************************************
103 ** additional-manifest - add additional manifest entries
104 **********************************************************
105 -->
106 <target name="additional-manifest">
107 <manifest file="MANIFEST" mode="update">
[35958]108 <!-- JAI requires a vendor name for some of its deep internals,
109 see https://stackoverflow.com/a/18495658/2257172 -->
[31744]110 <attribute name="Specification-Title" value="JOSM GeoTools plugin"/>
[35958]111 <attribute name="Specification-Version" value="${gt.version}"/>
[31744]112 <attribute name="Specification-Vendor" value="JOSM developers" />
113 <attribute name="Implementation-Title" value="org.openstreetmap.josm.plugins.geotools" />
[35958]114 <attribute name="Implementation-Version" value="${gt.version}" />
[31744]115 <attribute name="Implementation-Vendor" value="JOSM developers"/>
116 </manifest>
117 </target>
[28592]118</project>
Note: See TracBrowser for help on using the repository browser.