<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>

	<groupId>sh.locus.lotr</groupId>
	<artifactId>lotr-javasdk</artifactId>
	<packaging>jar</packaging>
	<name>Lotr-java-sdk</name>

	<parent>
		<groupId>sh.locus.common</groupId>
		<artifactId>locus-api-parent</artifactId>
		<version>1.0.0</version>
	</parent>
	
	<description>Sdk for lotr server</description>
	<url>https://github.com/locus-taxy/</url>

	<licenses>
		<license>
			<name>Apache License, Version 2.0</name>
			<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
			<distribution>repo</distribution>
		</license>
	</licenses>

	<scm>
		<connection>scm:git:git://github.com/locus-taxy/lotr-backend.git</connection>
		<developerConnection>scm:git:ssh://git@github.com/locus-taxy/lotr-backend.git</developerConnection>
		<url>https://github.com/locus-taxy/lotr-backend/</url>
	</scm>

	<developers>
		<developer>
			<id>Locus-Dev</id>
			<name>Locus-Dev</name>
			<url>https://github.com/locus-taxy/</url>
		</developer>
	</developers>

	<build>
		<plugins>

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<!-- Android doesn't yet support 1.8 -->
					<source>1.7</source>
					<target>1.7</target>
				</configuration>
			</plugin>

			<plugin>
				<groupId>io.swagger</groupId>
				<artifactId>swagger-codegen-maven-plugin</artifactId>
				<executions>
					<execution>
						<id>main</id>
						<goals>
							<goal>generate</goal>
						</goals>
						<configuration>
							<inputSpec>src/main/resources/lotr.yaml</inputSpec>
							<language>java</language>
							<configOptions>
								<invokerPackage>sh.locus.lotr.model.swagger</invokerPackage>
								<modelPackage>sh.locus.lotr.model</modelPackage>
								<apiPackage>sh.locus.lotr.model.api</apiPackage>
								<sourceFolder>src/gen/java/main</sourceFolder>
							</configOptions>
						</configuration>
					</execution>
				</executions>
			</plugin>

		</plugins>
	</build>

	<distributionManagement>
		<snapshotRepository>
			<id>locus-snapshot</id>
			<name>locus-snapshot</name>
			<url>https://locus.jfrog.io/locus/libs-snapshot-local</url>
		</snapshotRepository>
	</distributionManagement>

</project>
