mirror of https://github.com/apache/ant-ivy
NEW: [Build] Publish the ivy sources (IVY-646) (thanks to Nicolas Lalevée)
git-svn-id: https://svn.apache.org/repos/asf/incubator/ivy/core/trunk@596295 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
56760b9a40
commit
26a090d9cb
|
|
@ -28,6 +28,7 @@ for detailed view of each issue, please consult http://issues.apache.org/jira/br
|
|||
Christer Jonsson
|
||||
Matthias Kilian
|
||||
Gregory Kisling
|
||||
Nicolas Lalevée
|
||||
Tat Leung
|
||||
Costin Leau
|
||||
Antoine Levy-Lambert
|
||||
|
|
@ -79,6 +80,7 @@ for detailed view of each issue, please consult http://issues.apache.org/jira/br
|
|||
- IMPROVEMENT: Make the root attribute in the ivyrep resolver mandatory (IVY-625)
|
||||
|
||||
- NEW: Add a task/code to create M2 POM files from Ivy configurations (IVY-416)
|
||||
- NEW: [Build] Publish the ivy sources (IVY-646) (thanks to Nicolas Lalevée)
|
||||
|
||||
- REFACTORING: Extract a settings interface for the different engines
|
||||
|
||||
|
|
|
|||
25
build.xml
25
build.xml
|
|
@ -278,8 +278,10 @@
|
|||
<echo message="version=${build.version}${line.separator}" file="${core.classes.build.dir}/module.properties" append="true" />
|
||||
<echo message="date=${pubdate}${line.separator}" file="${core.classes.build.dir}/module.properties" append="true" />
|
||||
|
||||
<mkdir dir="${artifacts.build.dir}/jars/"/>
|
||||
|
||||
<!-- package the two ivy jars -->
|
||||
<jar destfile="${artifacts.build.dir}/${final.name}"
|
||||
<jar destfile="${artifacts.build.dir}/jars/${final.name}"
|
||||
manifest="${basedir}/MANIFEST.MF">
|
||||
<metainf dir="${basedir}" includes="LICENSE,DISCLAIMER,NOTICE" />
|
||||
<manifest>
|
||||
|
|
@ -298,7 +300,7 @@
|
|||
<fileset dir="${ant.classes.build.dir}" />
|
||||
<fileset dir="${optional.classes.build.dir}" />
|
||||
</jar>
|
||||
<jar destfile="${artifacts.build.dir}/${final.core.name}">
|
||||
<jar destfile="${artifacts.build.dir}/jars/${final.core.name}">
|
||||
<metainf dir="${basedir}" includes="LICENSE,DISCLAIMER,NOTICE" />
|
||||
<manifest>
|
||||
<attribute name="Specification-Title" value="Apache Ivy Core (without Ant tasks)" />
|
||||
|
|
@ -331,12 +333,25 @@ ${final.core.name} The Ivy core, eg everything but classes dependent on Ant.$
|
|||
</ivy:makepom>
|
||||
</target>
|
||||
|
||||
<!-- =================================================================
|
||||
<target name="sources" depends="default-version" description="Create source archive files">
|
||||
<mkdir dir="${artifacts.build.dir}/sources/"/>
|
||||
<jar destfile="${artifacts.build.dir}/sources/${final.name}"
|
||||
manifest="${basedir}/MANIFEST.MF">
|
||||
<fileset dir="${src.dir}" />
|
||||
</jar>
|
||||
<!-- TODO : we should restrict sources files to the core only -->
|
||||
<jar destfile="${artifacts.build.dir}/sources/${final.core.name}"
|
||||
manifest="${basedir}/MANIFEST.MF">
|
||||
<fileset dir="${src.dir}" />
|
||||
</jar>
|
||||
</target>
|
||||
|
||||
<!-- =================================================================
|
||||
PUBLISH LOCAL
|
||||
================================================================= -->
|
||||
<target name="publish-local" depends="jar" description="publishes Ivy to Ivy local repository">
|
||||
<target name="publish-local" depends="jar,sources" description="publishes Ivy to Ivy local repository">
|
||||
<ivy:publish resolver="local" pubrevision="${build.version}"
|
||||
artifactsPattern="${artifacts.build.dir}/[artifact].[ext]"
|
||||
artifactsPattern="${artifacts.build.dir}/[type]s/[artifact].[ext]"
|
||||
forcedeliver="true" />
|
||||
</target>
|
||||
|
||||
|
|
|
|||
2
ivy.xml
2
ivy.xml
|
|
@ -34,6 +34,8 @@
|
|||
<publications>
|
||||
<artifact name="ivy" type="jar" conf="default"/>
|
||||
<artifact name="ivy-core" type="jar" conf="core"/>
|
||||
<artifact name="ivy" type="source" ext="jar" conf="default"/>
|
||||
<artifact name="ivy-core" type="source" ext="jar" conf="core"/>
|
||||
</publications>
|
||||
<dependencies>
|
||||
<dependency org="ant" name="ant" rev="1.6" conf="default"/>
|
||||
|
|
|
|||
Loading…
Reference in New Issue