source: osm/applications/editors/josm/plugins/MicrosoftStreetside/build.xml@ 36275

Last change on this file since 36275 was 36228, checked in by taylor.smock, 10 months ago

StreetSide: Update to official API

This also moves the plugin to Java 21 (mostly for virtual threads), reformats the
code to match the JOSM standard (4 spaces), and fixes a bunch of lint issues.

Additionally, a lot of cruft from when this plugin was copied from Mapillary was
removed. That was largely related to image import, uploading, and login.

File size: 2.0 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<project xmlns:if="ant:if" xmlns:ivy="antlib:org.apache.ivy.ant" name="MicrosoftStreetside" default="dist" basedir=".">
3 <!-- Configure these properties (replace "..." accordingly).
4 See https://josm.openstreetmap.de/wiki/DevelopersGuide/DevelopingPlugins
5 -->
6 <!-- enter the SVN commit message -->
7 <property name="commit.message" value="Commit message"/>
8 <!-- edit the properties of this plugin in the file `gradle.properties` -->
9 <property file="${basedir}/gradle.properties"/>
10 <property name="josm" location="../../core/dist/josm-custom.jar"/>
11 <property name="plugin.dist.dir" value="../../dist"/>
12 <property name="java.lang.version" value="21"/>
13 <!--** include targets that all plugins have in common **-->
14 <import file="../build-common.xml"/>
15 <fileset id="plugin.requires.jars" dir="${plugin.dist.dir}">
16 <include name="apache-commons.jar"/>
17 <include name="javafx-osx.jar" if:set="isMac"/>
18 <include name="javafx-unixoid.jar" if:set="isUnix"/>
19 <include name="javafx-windows.jar" if:set="isWindows"/>
20 </fileset>
21 <target name="pre-compile" depends="fetch_dependencies">
22 <!-- include fetch_dependencies task -->
23 <ivy:retrieve conf="provided,default"/>
24 <!--<ivy:cachepath pathid="compile.path" conf="default,provided"/>-->
25 </target>
26 <target name="build-jar">
27 <ivy:resolve/>
28 <ivy:cachefileset setid="ivy.default.path" conf="default"/>
29 <jar destfile="${basedir}/dependencies.jar" duplicate="preserve" level="0">
30 <zipgroupfileset refid="ivy.default.path"/>
31 </jar>
32 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}" manifest="${manifest}" manifestencoding="UTF-8" duplicate="preserve" level="9" excludes="${basedir}/dependencies.jar">
33 <zipfileset src="${basedir}/dependencies.jar" excludes="META-INF/maven/* META-INF/DEPENDENCIES META-INF/LICENSE META-INF/NOTICE META-INF/*.RSA META-INF/*.SF module-info.class"/>
34 </jar>
35 <delete file="${basedir}/dependencies.jar"/>
36 </target>
37</project>
Note: See TracBrowser for help on using the repository browser.