<?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>

	<parent>
		<groupId>am.ik.redis</groupId>
		<artifactId>redis-adapter-for-spring-session</artifactId>
		<version>0.1.1</version>
	</parent>

	<artifactId>redis-adapter-for-spring-session-server-inmemory</artifactId>
	<name>redis-adapter-for-spring-session-server-inmemory</name>
	<description>The Redis adapter server that keeps its sessions in memory</description>

	<dependencies>
		<dependency>
			<groupId>am.ik.redis</groupId>
			<artifactId>redis-adapter-for-spring-session-server</artifactId>
			<version>${project.version}</version>
		</dependency>
		<dependency>
			<groupId>am.ik.redis</groupId>
			<artifactId>redis-adapter-for-spring-session-inmemory</artifactId>
			<version>${project.version}</version>
		</dependency>
		<!-- The harness the server module publishes: the shipped configuration under a real
		     Lettuce client, the key names Spring Session writes, and the benchmark. Running
		     it here is what says this backend serves sessions, rather than only that it
		     compiles against the SPI. -->
		<dependency>
			<groupId>am.ik.redis</groupId>
			<artifactId>redis-adapter-for-spring-session-server</artifactId>
			<version>${project.version}</version>
			<type>test-jar</type>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-test</artifactId>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-resttestclient</artifactId>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-session-data-redis</artifactId>
			<scope>test</scope>
		</dependency>
	</dependencies>

	<build>
		<plugins>
			<plugin>
				<groupId>am.ik.maven</groupId>
				<artifactId>nullability-maven-plugin</artifactId>
				<extensions>true</extensions>
			</plugin>
			<plugin>
				<groupId>io.spring.javaformat</groupId>
				<artifactId>spring-javaformat-maven-plugin</artifactId>
			</plugin>
			<!-- The runnable server is attached under the "exec" classifier so that the plain
			     jar stays a jar: its configuration classes are also usable from an application
			     that would rather run the adapter inside itself. -->
			<plugin>
				<groupId>org.springframework.boot</groupId>
				<artifactId>spring-boot-maven-plugin</artifactId>
				<version>${spring-boot.version}</version>
				<configuration>
					<classifier>exec</classifier>
					<mainClass>am.ik.redis.adapter.boot.inmemory.InMemoryRedisAdapterServerApplication</mainClass>
				</configuration>
				<executions>
					<execution>
						<goals>
							<goal>repackage</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
</project>
