-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
81 lines (81 loc) · 4.74 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?xml version="1.0" encoding="utf-8"?>
<project xmlns:mvn="antlib:org.apache.maven.resolver.ant" name="DxfImport" default="dist" basedir=".">
<!-- enter the SVN commit message -->
<property name="commit.message" value="This should be the first commit, not sure yet"/>
<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
<property name="plugin.main.version" value="19044"/>
<property name="java.lang.version" value="11"/>
<property name="plugin.author" value="Antochi Adrian and Trifan Adrian"/>
<property name="plugin.class" value="org.openstreetmap.josm.plugins.dxfimport.DxfImportPlugin"/>
<property name="plugin.description" value="Dxf Import"/>
<property name="plugin.icon" value="images/dxfIcon.png"/>
<property name="plugin.link" value="https://wiki.openstreetmap.org/wiki/JOSM/Plugins/DXF_import"/>
<property name="plugin.requires" value="apache-commons"/>
<target name="additional-manifest">
<manifest file="MANIFEST" mode="update">
<attribute name="12671_Plugin-Url" value="1012;https://github.com/JOSM/Dxf-Import/releases/download/v1012/DxfImport.jar"/>
<attribute name="14960_Plugin-Url" value="1014;https://github.com/JOSM/Dxf-Import/releases/download/v1014/DxfImport.jar"/>
</manifest>
</target>
<!-- ** include targets that all plugins have in common ** -->
<import file="../build-common.xml"/>
<fileset id="plugin.requires.jars" dir="${plugin.dist.dir}">
<include name="apache-commons.jar"/>
</fileset>
<target name="pre-compile" depends="fetch_dependencies">
<!-- include fetch_dependencies task -->
</target>
<!-- This stanza is necessary since the maven resolver doesn't read repo settings from the pom.xml file -->
<!-- resolver.repositories makes it global -->
<target name="fetch-dependencies-maven" depends="is-maven,init-maven,clean_ivy">
<mvn:pom file="pom.xml"/>
<mvn:pom file="pom.xml" id="pom"/>
<!-- This stanza is necessary since the maven resolver doesn't read repo settings from the pom.xml file -->
<!-- resolver.repositories makes it global -->
<mvn:remoterepos id="resolver.repositories">
<mvn:remoterepo id="JOSM" url="https://josm.openstreetmap.de/nexus/content/repositories/public/"/>
<mvn:remoterepo id="JOSM-snapshots" url="https://josm.openstreetmap.de/nexus/content/repositories/snapshots/" snapshots="true"/>
<mvn:remoterepo id="josm-github-kabeja" url="https://github.com/JOSM/kabeja/raw/maven/"/>
</mvn:remoterepos>
<mkdir dir="${plugin.lib.dir}"/>
<mvn:resolve>
<!-- For some reason, compile time josm-unittest dependencies get included -->
<mvn:dependencies pomRef="pom">
<mvn:exclusion groupId="org.openstreetmap.josm" artifactId="josm-unittest"/>
<mvn:exclusion groupId="org.junit.platform"/>
<mvn:exclusion groupId="org.junit.vintage"/>
<mvn:exclusion groupId="org.junit.jupiter"/>
</mvn:dependencies>
<mvn:files refid="lib.files" dir="${plugin.lib.dir}" layout="{artifactId}-{version}-{classifier}.{extension}" scopes="compile,!test"/>
</mvn:resolve>
<mvn:resolve>
<mvn:path refid="classpath.provided" scopes="provided"/>
</mvn:resolve>
<mvn:resolve>
<mvn:path refid="testlib.classpath" classpath="test"/>
</mvn:resolve>
<mvn:resolve>
<mvn:dependencies>
<mvn:dependency groupId="org.jacoco" artifactId="org.jacoco.ant" version="${pom.properties.jacoco.version}" classifier="nodeps" type="jar" scope="test"/>
</mvn:dependencies>
<mvn:path refid="jacocotest.classpath" classpath="test"/>
</mvn:resolve>
<mvn:resolve>
<mvn:dependencies>
<mvn:dependency groupId="com.puppycrawl.tools" artifactId="checkstyle" version="${pom.properties.checkstyle.version}" scope="compile"/>
</mvn:dependencies>
<mvn:path refid="checkstyle.classpath" classpath="compile"/>
</mvn:resolve>
<mvn:resolve>
<mvn:dependencies>
<mvn:dependency groupId="com.github.spotbugs" artifactId="spotbugs" version="${pom.properties.spotbugs.version}" scope="compile"/>
<mvn:dependency groupId="com.github.spotbugs" artifactId="spotbugs-ant" version="${pom.properties.spotbugs.version}" scope="compile"/>
</mvn:dependencies>
<mvn:path refid="spotbugs.classpath" classpath="compile"/>
</mvn:resolve>
<path id="plugin.classpath.actual">
<path refid="plugin.classpath"/>
<path refid="classpath.provided"/>
</path>
</target>
</project>