<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>
	<parent>
		<groupId>de.banbury</groupId>
		<artifactId>zag2</artifactId>
		<version>1.1.0</version>
	</parent>
	<artifactId>zag-swing</artifactId>
	<dependencies>
		<dependency>
			<groupId>de.banbury</groupId>
			<artifactId>zag-core</artifactId>
			<version>1.1.0</version>
		</dependency>
	</dependencies>

	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>3.0</version>
				<configuration>
					<source>${java.version}</source>
					<target>${java.version}</target>
					<compilerArgument>-proc:none</compilerArgument>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.objectstyle.japp</groupId>
				<artifactId>japp-maven-plugin</artifactId>
				<version>3.0</version>
				<executions>
					<execution>
						<id>Linux</id>
						<configuration>
							<name>zag</name>
							<mainClass>org.p2c2e.zing.swing.Main</mainClass>
							<os>java</os>
							<jvm>${java.version}+</jvm>
							<jvmOptions>-Xmx512m</jvmOptions>
						</configuration>
						<phase>package</phase>
						<goals>
							<goal>japp</goal>
						</goals>
					</execution>
					<execution>
						<id>Mac</id>
						<configuration>
							<name>zag</name>
							<mainClass>org.p2c2e.zing.swing.Main</mainClass>
							<icon>${project.parent.basedir}/res/zag_icon.icns</icon>
							<os>mac</os>
							<jvm>1.5+</jvm>
							<jvmOptions>-Xmx512m -XX:-UseSplitVerifier -Dapple.laf.useScreenMenuBar=true</jvmOptions>
						</configuration>
						<phase>package</phase>
						<goals>
							<goal>japp</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>com.akathist.maven.plugins.launch4j</groupId>
				<artifactId>launch4j-maven-plugin</artifactId>
				<version>1.5.2</version>
				<executions>
					<execution>
						<id>l4j-gui</id>
						<phase>package</phase>
						<goals>
							<goal>launch4j</goal>
						</goals>
						<configuration>
							<headerType>gui</headerType>
							<outfile>${project.build.directory}/zag.exe</outfile>
							<jar>${project.build.directory}/zag.jar</jar>
							<icon>${project.parent.basedir}/res/zag_icon.ico</icon>
							<errTitle>Zag</errTitle>
							<classPath>
								<mainClass>org.p2c2e.zing.swing.Main</mainClass>
							</classPath>
							<jre>
								<minVersion>1.7.0</minVersion>
								<opts>
									<opt>-Xmx512M -XX:-UseSplitVerifier</opt>
								</opts>
							</jre>
							<versionInfo>
								<fileVersion>${app.version}.0</fileVersion>
								<fileDescription>Zag - a Glulx interpreter</fileDescription>
								<copyright>2014 by Banbury</copyright>
								<productVersion>${app.version}.0</productVersion>
								<productName>Zag</productName>
								<internalName>zag</internalName>
								<originalFilename>zag.exe</originalFilename>
								<txtFileVersion>${app.version}.0</txtFileVersion>
								<txtProductVersion>${app.version}.0</txtProductVersion>
							</versionInfo>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>com.keyboardsamurais.maven</groupId>
				<artifactId>maven-timestamp-plugin</artifactId>
				<version>1.0</version>
				<configuration>
					<propertyName>timestamp</propertyName>
					<timestampPattern>yyyyMMdd</timestampPattern>
				</configuration>
				<executions>
					<execution>
						<goals>
							<goal>create</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<artifactId>maven-assembly-plugin</artifactId>
				<version>2.4</version>
				<configuration>
					<descriptors>
<!-- 						<descriptor>res/zip.xml</descriptor> -->
						<descriptor>res/windows.xml</descriptor>
						<descriptor>res/linux.xml</descriptor>
						<descriptor>res/macosx.xml</descriptor>
					</descriptors>
					<finalName>zag-${project.version}-${timestamp}</finalName>
				</configuration>
				<executions>
					<execution>
						<id>make-assembly</id>
						<phase>package</phase>
						<goals>
							<goal>single</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
</project>