Changeset 36293 in osm for applications/viewer/jmapviewer/build.xml
- Timestamp:
- 2024-07-16T18:56:38+02:00 (6 months ago)
- Location:
- applications/viewer/jmapviewer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/viewer/jmapviewer
-
Property ReleaseVersion
changed from
2.19
to2.20
-
Property ReleaseVersion
changed from
-
applications/viewer/jmapviewer/build.xml
r36225 r36293 3 3 xmlns:jacoco="antlib:org.jacoco.ant" 4 4 xmlns:if="ant:if" 5 xmlns: ivy="antlib:org.apache.ivy.ant"5 xmlns:mvn="antlib:org.apache.maven.resolver.ant" 6 6 > 7 7 8 8 <property name="java.lang.version" value="8" /> 9 9 <dirname property="base.dir" file="${ant.file.jmapviewer}"/> 10 <property name="maven.artifact.resolver.version" value="1.5.1"/> 11 <property name="maven.artifact.resolver.parent.dir" value="${user.home}/.m2/repository/org/apache/maven/resolver/maven-resolver-ant-tasks/${maven.artifact.resolver.version}/"/> 10 12 <property name="jacoco.includes" value="org.openstreetmap.gui.jmapviewer.*" /> 11 13 <property name="jacoco.inclbootstrapclasses" value="false" /> … … 73 75 </target> 74 76 75 <target name="checkdepsupdate" depends="resolve">76 <ivy:checkdepsupdate/>77 </target>78 79 77 <target name="svn_info" description="Get SVN info for use in JAR/ZIP filenames."> 80 78 <!-- Get the svn ReleaseVersion property --> … … 168 166 </target> 169 167 170 <target name="resolve" description="Resolve Ivy dependencies"> 171 <ivy:resolve/> 172 <ivy:cachepath pathid="checkstyle.classpath" conf="checkstyle"/> 173 <ivy:cachepath pathid="testlib.classpath" conf="test"/> 174 <ivy:cachepath pathid="jacoco.classpath" conf="jacocoant"/> 175 <ivy:cachepath pathid="spotbugs.classpath" conf="spotbugs"/> 168 <target name="download-artifact-resolver"> 169 <mkdir dir="${maven.artifact.resolver.parent.dir}"/> 170 <get src="https://repo1.maven.org/maven2/org/apache/maven/resolver/maven-resolver-ant-tasks/${maven.artifact.resolver.version}/maven-resolver-ant-tasks-${maven.artifact.resolver.version}-uber.jar" 171 dest="${maven.artifact.resolver.parent.dir}/maven-resolver-ant-tasks-${maven.artifact.resolver.version}-uber.jar" 172 usetimestamp="true" /> 173 </target> 174 <target name="init-maven" depends="download-artifact-resolver"> 175 <path id="maven.lib.path"> 176 <fileset dir="${maven.artifact.resolver.parent.dir}" includes="maven-resolver-ant-tasks-${maven.artifact.resolver.version}-uber.jar"/> 177 </path> 178 <taskdef uri="antlib:org.apache.maven.resolver.ant" resource="org/apache/maven/resolver/ant/antlib.xml" classpathref="maven.lib.path"/> 179 </target> 180 <target name="resolve" depends="init-maven" description="Resolve Maven dependencies"> 181 <mvn:pom file="pom.xml"/> 182 <!-- This stanza is necessary since the maven resolver doesn't read repo settings from the pom.xml file --> 183 <!-- resolver.repositories makes it global --> 184 <mvn:remoterepos id="resolver.repositories"> 185 <mvn:remoterepo id="JOSM-central" url="https://josm.openstreetmap.de/nexus/content/repositories/central/" /> 186 </mvn:remoterepos> 187 <mvn:resolve> 188 <mvn:path refid="testlib.classpath" classpath="test"/> 189 </mvn:resolve> 190 <mvn:resolve> 191 <mvn:dependencies> 192 <mvn:dependency groupId="org.jacoco" artifactId="org.jacoco.ant" version="${pom.properties.version.maven.jacoco}" classifier="nodeps" type="jar" scope="test"/> 193 </mvn:dependencies> 194 <mvn:path refid="jacoco.classpath" classpath="test"/> 195 </mvn:resolve> 196 <mvn:resolve> 197 <mvn:dependencies> 198 <mvn:dependency groupId="com.puppycrawl.tools" artifactId="checkstyle" version="${pom.properties.version.maven.checkstyle}" scope="compile"/> 199 </mvn:dependencies> 200 <mvn:path refid="checkstyle.classpath" classpath="compile"/> 201 </mvn:resolve> 202 <mvn:resolve> 203 <mvn:dependencies> 204 <mvn:dependency groupId="com.github.spotbugs" artifactId="spotbugs" version="${pom.properties.version.maven.spotbugs}" scope="compile"/> 205 <mvn:dependency groupId="com.github.spotbugs" artifactId="spotbugs-ant" version="${pom.properties.version.maven.spotbugs}" scope="compile"/> 206 </mvn:dependencies> 207 <mvn:path refid="spotbugs.classpath" classpath="compile"/> 208 </mvn:resolve> 176 209 </target> 177 210
Note:
See TracChangeset
for help on using the changeset viewer.