Skip to content

Commit

Permalink
Adds ivy template for pom generation
Browse files Browse the repository at this point in the history
  • Loading branch information
botic committed Feb 20, 2017
1 parent 3a3a2cb commit 0845a99
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 4 deletions.
3 changes: 2 additions & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
<property name="build" value="${home}/build"/>
<property name="classes" value="${build}/classes"/>
<property name="javadoc" value="${home}/docs/java/"/>
<property name="pom.templatefile" value="${home}/tools/pom-template.xml" />

<property name="ringo-core.jar" value="${lib}/ringo-core.jar"/>
<property name="ringo-modules.jar" value="${lib}/ringo-modules.jar"/>
Expand Down Expand Up @@ -294,7 +295,7 @@
<!-- Creates a POM -->
<!-- =================================================================== -->
<target name="pom" depends="init">
<ivy:makepom ivyfile="ivy.xml" pomfile="pom.xml">
<ivy:makepom ivyfile="ivy.xml" pomfile="pom.xml" templatefile="${pom.templatefile}" conf="default">
<mapping conf="default" scope="compile"/>
</ivy:makepom>
</target>
Expand Down
8 changes: 5 additions & 3 deletions ivy.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
<info organisation="org.ringojs" module="ringojs"/>

<configurations>
<conf name="default" description="the default jar libraries"/>
<conf name="default" visibility="public" description="the default jar libraries"/>
<conf name="test" visibility="public" />
</configurations>

<dependencies>
Expand All @@ -24,9 +25,10 @@
</dependency>
<dependency org="log4j" name="log4j" rev="1.2.14"/>

<!-- junit -->
<dependency org="junit" name="junit" rev="3.8.+"/>
<!-- jline -->
<dependency org="jline" name="jline" rev="2.12.1"/>

<!-- junit -->
<dependency org="junit" name="junit" rev="3.8.+" conf="test->*"/>
</dependencies>
</ivy-module>
63 changes: 63 additions & 0 deletions tools/pom-template.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>

<groupId>${ivy.pom.groupId}</groupId>
<artifactId>${ivy.pom.artifactId}</artifactId>
<packaging>${ivy.pom.packaging}</packaging>
<version>${ivy.pom.version}</version>

<name>${ivy.pom.name}</name>
<description>${ivy.pom.description}</description>
<url>${ivy.pom.url}</url>

<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>

<developers>
<!-- the current core team plus hannes as BDFL -->
<developer>
<id>hns</id>
<name>Hannes Wallnöfer</name>
<url>http://github.com/ringo/ringojs/commits/master?author=hns</url>
</developer>
<developer>
<id>oberhamsi</id>
<name>Simon Oberhammer</name>
<url>http://github.com/ringo/ringojs/commits/master?author=oberhamsi</url>
</developer>
<developer>
<id>botic</id>
<name>Philipp Naderer-Puiu</name>
<url>http://github.com/ringo/ringojs/commits/master?author=botic</url>
</developer>
<developer>
<id>grob</id>
<name>Robert Gaggl</name>
<url>http://github.com/ringo/ringojs/commits/master?author=grob</url>
</developer>
</developers>

<scm>
<connection>scm:git:[email protected]:ringo/ringojs.git</connection>
<developerConnection>scm:git:[email protected]:ringo/ringojs.git</developerConnection>
<url>https://github.com/ringo/ringojs.git</url>
</scm>

<issueManagement>
<system>GitHub Issues</system>
<url>https://github.com/ringo/ringojs/issues</url>
</issueManagement>

<build>
<sourceDirectory>${src}</sourceDirectory>
<testSourceDirectory>${home}/org/ringojs/test</testSourceDirectory>
</build>

</project>

0 comments on commit 0845a99

Please sign in to comment.