Skip to content

Commit

Permalink
Added pom.xmls.
Browse files Browse the repository at this point in the history
  • Loading branch information
junkdog committed Sep 21, 2013
1 parent df55181 commit 81d263d
Show file tree
Hide file tree
Showing 5 changed files with 161 additions and 2 deletions.
1 change: 0 additions & 1 deletion .gitignore
Expand Up @@ -3,7 +3,6 @@
*.so
*.log
*.class
*/pom.xml
*/.ant*
target/
.project
Expand Down
11 changes: 10 additions & 1 deletion pom.xml
Expand Up @@ -22,9 +22,18 @@
<modules>
<module>utils</module>
<module>postprocessing</module>
<module>postprocessing-demo</module>
</modules>

<profiles>
<profile>
<id>demo</id>
<modules>
<module>postprocessing-demo</module>
</modules>
</profile>
</profiles>


<build>
<plugins>
<plugin>
Expand Down
101 changes: 101 additions & 0 deletions postprocessing-demo/pom.xml
@@ -0,0 +1,101 @@
<?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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.bitfire</groupId>
<artifactId>libgdx-contribs</artifactId>
<version>1.1.0-SNAPSHOT</version>
</parent>

<artifactId>postprocessing-demo</artifactId>
<packaging>jar</packaging>
<name>postprocessing demo</name>

<properties>
<mainClass>com.bitfire.postprocessing.demo.PostProcessingDemo</mainClass>
</properties>

<dependencies>
<dependency>
<groupId>com.bitfire</groupId>
<artifactId>postprocessing</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.badlogicgames.gdx</groupId>
<artifactId>gdx</artifactId>
<version>${gdx.version}</version>
</dependency>
<dependency>
<groupId>com.badlogicgames.gdx</groupId>
<artifactId>gdx-backend-lwjgl</artifactId>
<version>${gdx.version}</version>
</dependency>
<dependency>
<groupId>com.badlogicgames.gdx</groupId>
<artifactId>gdx-platform</artifactId>
<version>${gdx.version}</version>
<classifier>natives-desktop</classifier>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>com.googlecode.mavennatives</groupId>
<artifactId>maven-nativedependencies-plugin</artifactId>
<version>0.0.6</version>
<executions>
<execution>
<id>unpacknatives</id>
<phase>pre-integration-test</phase>
<goals><goal>copy</goal></goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<phase>integration-test</phase>
<configuration>
<target>
<java fork="true" classname="${mainClass}" classpathref="maven.test.classpath">
<sysproperty key="java.library.path" value="target/natives"/>
</java>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.4</version>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<archive>
<manifest>
<mainClass>${mainClass}</mainClass>
</manifest>
</archive>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
27 changes: 27 additions & 0 deletions postprocessing/pom.xml
@@ -0,0 +1,27 @@
<?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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.bitfire</groupId>
<artifactId>libgdx-contribs</artifactId>
<version>1.1.0-SNAPSHOT</version>
</parent>
<artifactId>postprocessing</artifactId>
<packaging>jar</packaging>
<name>postprocessing</name>

<dependencies>
<dependency>
<groupId>com.bitfire</groupId>
<artifactId>utils</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.badlogic.gdx</groupId>
<artifactId>gdx</artifactId>
<version>${gdx.version}</version>
</dependency>
</dependencies>

</project>
23 changes: 23 additions & 0 deletions utils/pom.xml
@@ -0,0 +1,23 @@
<?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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.bitfire</groupId>
<artifactId>libgdx-contribs</artifactId>
<version>1.1.0-SNAPSHOT</version>
</parent>
<artifactId>utils</artifactId>
<packaging>jar</packaging>
<name>utils</name>

<dependencies>
<dependency>
<groupId>com.badlogic.gdx</groupId>
<artifactId>gdx</artifactId>
<version>${gdx.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>

</project>

0 comments on commit 81d263d

Please sign in to comment.