<?xml version="1.0" encoding="UTF-8"?>
<!-- ~ Orika - simpler, better and faster Java bean mapping ~ ~ Copyright 
	(C) 2011-2013 Orika authors ~ ~ Licensed under the Apache License, Version 
	2.0 (the "License"); ~ you may not use this file except in compliance with 
	the License. ~ You may obtain a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 
	~ ~ Unless required by applicable law or agreed to in writing, software ~ 
	distributed under the License is distributed on an "AS IS" BASIS, ~ WITHOUT 
	WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ~ See the 
	License for the specific language governing permissions and ~ limitations 
	under the License. -->

<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">
	<parent>
		<artifactId>orika-parent</artifactId>
		<groupId>ma.glasnost.orika</groupId>
		<version>1.5.4</version>
	</parent>
	<modelVersion>4.0.0</modelVersion>
	<artifactId>orika-core</artifactId>
	<name>Orika - core</name>


	<dependencies>

		<dependency>
			<groupId>org.javassist</groupId>
			<artifactId>javassist</artifactId>
		</dependency>

		<dependency>
			<groupId>com.thoughtworks.paranamer</groupId>
			<artifactId>paranamer</artifactId>
		</dependency>

		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-api</artifactId>
		</dependency>

		<dependency>
			<groupId>com.carrotsearch</groupId>
			<artifactId>java-sizeof</artifactId>
		</dependency>

		<dependency>
			<groupId>com.google.guava</groupId>
			<artifactId>guava</artifactId>
			<optional>true</optional>
		</dependency>

		<dependency>
			<groupId>org.codehaus.janino</groupId>
			<artifactId>janino</artifactId>
			<scope>compile</scope>
		</dependency>

	</dependencies>

	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-shade-plugin</artifactId>
				<version>3.1.0</version>
				<executions>
					<execution>
						<phase>package</phase>
						<goals>
							<goal>shade</goal>
						</goals>
						<configuration>
							<shadedArtifactAttached>true</shadedArtifactAttached>
							<shadedClassifierName>deps-included</shadedClassifierName>
							<minimizeJar>true</minimizeJar>
							<artifactSet>
								<excludes>
									<exclude>org.slf4j:slf4j-api</exclude>
								</excludes>
							</artifactSet>
							<relocations>
								<relocation>
									<pattern>javassist</pattern>
									<shadedPattern>orika_shaded.javassist</shadedPattern>
								</relocation>
								<relocation>
									<pattern>com.thoughtworks.paranamer</pattern>
									<shadedPattern>orika_shaded.com.thoughtworks.paranamer</shadedPattern>
								</relocation>
								<relocation>
									<pattern>com.googlecode.concurrentlinkedhashmap</pattern>
									<shadedPattern>orika_shaded.com.googlecode.concurrentlinkedhashmap</shadedPattern>
								</relocation>
							</relocations>
						</configuration>
					</execution>
				</executions>
			</plugin>

	        <plugin>
	          <groupId>org.codehaus.mojo</groupId>
	          <artifactId>animal-sniffer-maven-plugin</artifactId>
	          <version>1.16</version>
	          <configuration>
	          <jdk>
            <version>[1.8.0)</version>
            <vendor>sun</vendor>
          </jdk>
	          </configuration>
	          <executions>
	            <execution>
	              <id>animal-sniffer-check</id>
	              <goals>
	                <goal>check</goal>
	              </goals>
	              <phase>test</phase>
	            </execution>
	          </executions>
	        </plugin>
		</plugins>
	</build>

</project>
