<?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>tk.plogitech</groupId>
    <artifactId>darksky-forecast-api</artifactId>
    <version>1.2.0</version>
    <packaging>jar</packaging>
    <properties>
	<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	<maven.compiler.source>1.8</maven.compiler.source>
	<maven.compiler.target>1.8</maven.compiler.target>
	<project.scm.id>git</project.scm.id>
    </properties>

    <name>darksky-forecast-api</name>
    <description>A java library to access the DarkSky weather forecast API.</description>
    <url>https://www.plogitech.tk</url>

    <licenses>
	<license>
	    <name>MIT License</name>
	    <url>http://www.opensource.org/licenses/mit-license.php</url>
	    <distribution>repo</distribution>
	</license>
    </licenses>

    <scm>
	<url>https://github.com/200Puls/darksky-forecast-api.git</url>
	<connection>scm:git:git://github.com/200Puls/darksky-forecast-api.git</connection>
	<developerConnection>scm:git:https://github.com/200Puls/darksky-forecast-api.git</developerConnection>
	<tag>HEAD</tag>
    </scm>

    <developers>
	<developer>
	    <name>Philipp-Andre Plogmann</name>
	    <email>plogitech200@gmail.com</email>
	</developer>
    </developers>
    <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>

    <build>
	<plugins>
	    <plugin>
		<groupId>org.apache.maven.plugins</groupId>
		<artifactId>maven-jar-plugin</artifactId>
		<version>3.0.2</version>
		<configuration>
		    <archive>
			<index>true</index>
			<manifest>
			    <addClasspath>true</addClasspath>
			</manifest>
			<manifestEntries>
			    <Automatic-Module-Name>tk.plogitech.darksky</Automatic-Module-Name>
			</manifestEntries>
		    </archive>
		</configuration>
	    </plugin>
	</plugins>

    </build>


    <profiles>
	<profile>
	    <id>release</id>
	    <build>
		<plugins>
		    <plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-source-plugin</artifactId>
			<version>3.0.1</version>
			<executions>
			    <execution>
				<id>attach-sources</id>
				<goals>
				    <goal>jar-no-fork</goal>
				</goals>
			    </execution>
			</executions>
		    </plugin>
		    <plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-javadoc-plugin</artifactId>
			<version>3.0.0</version>
			<executions>
			    <execution>
				<id>attach-javadocs</id>
				<goals>
				    <goal>jar</goal>
				</goals>
			    </execution>
			</executions>
		    </plugin>
		    <plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-gpg-plugin</artifactId>
			<version>1.6</version>
			<executions>
			    <execution>
				<id>sign-artifacts</id>
				<phase>verify</phase>
				<goals>
				    <goal>sign</goal>
				</goals>
			    </execution>
			</executions>
		    </plugin>
		    <plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-release-plugin</artifactId>
			<version>2.5.3</version>
			<configuration>
			    <autoVersionSubmodules>true</autoVersionSubmodules>
			    <useReleaseProfile>false</useReleaseProfile>
			    <releaseProfiles>release</releaseProfiles>
			    <goals>deploy</goals>
			</configuration>
		    </plugin>
		</plugins>
	    </build>
	</profile>
    </profiles>
</project>