<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>edu.wisc.umark</groupId>
	<artifactId>uw-ui-toolkit</artifactId>
	<version>v0.3.1</version>
	<name>UW UI Toolkit</name>
	<description>A web front-end toolkit based on Bootstrap for designing and developing modern, mobile-first websites for the University of Wisconsin-Madison.</description>
	<url>https://github.com/UWMadisonUcomm/uw-ui-toolkit</url>
	
	<organization>
		<name>University of Wisconsin-Madison</name>
		<url>http://www.wisc.edu</url>
	</organization>
	
	<licenses>
		<license>
			<name>Apache License, Version 2.0</name>
			<url>https://www.apache.org/licenses/LICENSE-2.0</url>
		</license>
	</licenses>
	
	<scm>
		<url>https://github.com/UWMadisonUcomm/uw-ui-toolkit</url>
		<connection>scm:git:https://github.com/UWMadisonUcomm/uw-ui-toolkit.git</connection>
		<developerConnection>scm:git:https://github.com/UWMadisonUcomm/uw-ui-toolkit.git</developerConnection>
		<tag>v0.3.1</tag>
	</scm>
	
	<distributionManagement>
		<snapshotRepository>
			<id>ossrh</id>
			<url>https://oss.sonatype.org/content/repositories/snapshots</url>
		</snapshotRepository>
		<repository>
			<id>ossrh</id>
			<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
		</repository>
	</distributionManagement>
	
	<developers>
		<developer>
			<name>Vidal Quevedo</name>
			<email>quevedo@wisc.edu</email>
		</developer>
		<developer>
			<name>Nick Weaver</name>
			<email>jnweaver@wisc.edu</email>
		</developer>
	</developers>
	
	<contributors>
		<contributor>
			<name>Nicholas Blair</name>
			<email>nicholas.blair@wisc.edu</email>
		</contributor>
		<contributor>
			<name>Jared Hanstra</name>
			<email>jared.hanstra@wisc.edu</email>
		</contributor>
                <contributor>
                        <name>Tim Levett</name>
                        <email>tim.levett@wisc.edu</email>
                </contributor>
	</contributors>

	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<upstreamVersion>0.2.2</upstreamVersion>
		<sourceRootUrl>https://github.com/UWMadisonUcomm/uw-ui-toolkit/releases/download/v${upstreamVersion}</sourceRootUrl>
		<destDir>${project.build.outputDirectory}/META-INF/resources/${project.groupId}/${project.artifactId}/${upstreamVersion}</destDir>
	</properties>

	<build>
		<plugins>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>wagon-maven-plugin</artifactId>
				<version>1.0-beta-4</version>
				<executions>
					<execution>
						<phase>process-resources</phase>
						<goals>
							<goal>download-single</goal>
						</goals>
						<configuration>
							<url>${sourceRootUrl}</url>
							<fromFile>${project.artifactId}-${upstreamVersion}.zip</fromFile>
							<toFile>${project.build.directory}/${project.artifactId}.zip</toFile>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-antrun-plugin</artifactId>
                <version>1.7</version>
                <executions>
                    <execution>
                        <phase>process-resources</phase>
                        <goals>
                        	<goal>run</goal>
                        </goals>
                        <configuration>
                            <target>
                                <unzip src="${project.build.directory}/${project.artifactId}.zip" dest="${project.build.directory}" />
                                <move todir="${destDir}">
                                    <fileset dir="${project.build.directory}" includes="js/,css/,fonts/,img/,js/" />
                                </move>
                            </target>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
        		<groupId>org.apache.maven.plugins</groupId>
        		<artifactId>maven-release-plugin</artifactId>
        		<version>2.5</version>
        		<configuration>
        			<!-- disable 'release' profile from super pom -->
        			<useReleaseProfile>false</useReleaseProfile>
   					<releaseProfiles>ossrh-release</releaseProfiles>
    				<goals>deploy</goals>
          			<tagNameFormat>@{project.artifactId}-maven-@{project.version}</tagNameFormat>
        		</configuration>
      		</plugin>
			<plugin>
				<groupId>org.sonatype.plugins</groupId>
				<artifactId>nexus-staging-maven-plugin</artifactId>
				<version>1.6.3</version>
				<extensions>true</extensions>
				<configuration>
					<serverId>ossrh</serverId>
					<nexusUrl>https://oss.sonatype.org/</nexusUrl>
					<autoReleaseAfterClose>true</autoReleaseAfterClose>
				</configuration>
			</plugin>
		</plugins>
	</build>

	<profiles>
		<profile>
			<id>ossrh-release</id>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-gpg-plugin</artifactId>
						<version>1.5</version>
						<executions>
							<execution>
								<id>sign-artifacts</id>
								<phase>verify</phase>
								<goals>
									<goal>sign</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>
</project>
