Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.

Commit

Permalink
Add the Ivy file to the project packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
mcartoixa committed Feb 28, 2020
1 parent 98df677 commit b34e88e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ a dependency manager like [Apache Ivy](http://ant.apache.org/ivy/) (preferred).

<resolvers>
<url name="github">
<ivy pattern="https://github.com/[organisation]/[module]/releases/download/[revision]/ivy.xml" />
<artifact pattern="https://github.com/[organisation]/[module]/releases/download/[revision]/[artifact].[ext]" />
</url>
</resolvers>
Expand Down
4 changes: 3 additions & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -185,14 +185,16 @@

<!-- package -->
<target name="package" depends="prepare.log,prepare.version,jar,package.ivy" description="Packages the project.">
<copy file="${dist.jar}" todir="${tmp.out.bin.dir}" preservelastmodified="true">
<copy todir="${tmp.out.bin.dir}" preservelastmodified="true">
<resources>
<file file="${dist.jar}" />
<file file="${basedir}/ivy.xml" />
</resources>
</copy>
<zip destfile="${tmp.out.bin.dir}/${ant.project.name}.zip" compress="true" level="9" filesonly="true">
<resources>
<file file="${dist.jar}" />
<file file="${basedir}/ivy.xml" />
<file file="${ivy.runtime.classpath}" />
</resources>
<zipfileset dir="docs" prefix="docs" />
Expand Down

0 comments on commit b34e88e

Please sign in to comment.