<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>org.redkalex</groupId>
	<artifactId>redkale-benchmark</artifactId>
	<version>0.0.1</version>

	<properties>
		<!-- the main class -->
		<main.class>org.redkale.boot.Application</main.class>
		<stack.version>0.0.1</stack.version>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>
	</properties>

	<dependencies>
  
		<dependency>
			<groupId>org.redkale</groupId>
			<artifactId>redkale</artifactId>
			<version>1.9.2.8</version>
		</dependency>

		<dependency>
			<groupId>org.redkalex</groupId>
			<artifactId>redkale-plugins</artifactId>
			<version>1.9.2.5</version>
		</dependency>
		<dependency>
			<groupId>com.fizzed</groupId>
			<artifactId>rocker-compiler</artifactId>
			<version>0.24.0</version>
		</dependency>
	</dependencies>

	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
                <version>3.5.1</version>                         
				<configuration>
                    <encoding>UTF-8</encoding>
					<source>1.8</source>
					<target>1.8</target>
				</configuration>
			</plugin>
			<plugin>
				<groupId>com.fizzed</groupId>
				<artifactId>rocker-maven-plugin</artifactId>
				<version>0.24.0</version>
				<executions>
					<execution>
						<id>generate-rocker-templates</id>
						<phase>generate-sources</phase>
						<goals>
							<goal>generate</goal>
						</goals>
						<configuration>
							<javaVersion>1.8</javaVersion>
							<templateDirectory>${basedir}/src/main/templates</templateDirectory>
							<outputDirectory>${basedir}/target/generated-sources/rocker</outputDirectory>
							<discardLogicWhitespace>false</discardLogicWhitespace>
							<addAsSources>true</addAsSources>
							<optimize>true</optimize>
							<failOnError>true</failOnError>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-shade-plugin</artifactId>
				<version>3.1.1</version>
				<executions>
					<execution>
						<phase>package</phase>
						<goals>
							<goal>shade</goal>
						</goals>
						<configuration>
							<transformers>
								<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
								  <mainClass>${main.class}</mainClass>
								</transformer>
							  </transformers>
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>

	</build>

</project>
