Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

55 lines (50 sloc) 1.934 kB
<project>
<macrodef name="gpg">
<attribute name="todir" />
<attribute name="file" />
<sequential>
<exec executable="gpg" dir="@{todir}">
<arg line="-ab @{file}" />
</exec>
</sequential>
</macrodef>
<macrodef name="sonatype-bundle">
<attribute name="dir" />
<attribute name="todir" />
<attribute name="pomTemplate" />
<attribute name="artifact" />
<attribute name="type" />
<attribute name="name" />
<attribute name="version" />
<attribute name="description" />
<element name="includes" />
<sequential>
<taskdef resource="net/sf/antcontrib/antlib.xml"/>
<!-- Create POM from template -->
<copy file="@{pomTemplate}" tofile="@{todir}/pom.xml" />
<replace file="@{todir}/pom.xml">
<replacefilter token="@ARTIFACT@" value="@{artifact}" />
<replacefilter token="@TYPE@" value="@{type}" />
<replacefilter token="@NAME@" value="@{name}" />
<replacefilter token="@VERSION@" value="@{version}" />
<replacefilter token="@DESCRIPTION@" value="@{description}" />
</replace>
<!-- Sign all files using GPG, assumes GPG is installed and configured -->
<for param="fileToSign">
<fileset dir="@{todir}">
<includes />
</fileset>
<sequential>
<gpg todir="@{todir}" file="@{fileToSign}" />
</sequential>
</for>
<!-- Zip into bundle for manual upload -->
<zip destfile="@{todir}/sonatype-@{artifact}-@{version}.zip">
<zipfileset dir="@{todir}">
<includes />
<include name="*.asc" />
</zipfileset>
</zip>
</sequential>
</macrodef>
</project>
Jump to Line
Something went wrong with that request. Please try again.