<?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>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-parent</artifactId>
		<version>2.6.4</version>
	</parent>

	<groupId>gr.cite</groupId>
    <artifactId>cache</artifactId>
    <version>${revision}</version>

	<name>CITE cache</name>
	<description>A cache library</description>
	<url>https://www.cite.gr</url>
	<licenses>
		<license>
			<name>CITE REUSABLE BINARY SOFTWARE PUBLIC LICENSE 1.0</name>
			<url>https://crepo.cite.gr/repository/licenses/CITE-REUSABLE-BINARY-SOFTWARE-PUBLIC-LICENSE-1.0.txt</url>
			<distribution>repo</distribution>
		</license>
	</licenses>
	<developers>
	 <developer>
	  <name>CITE S.A.</name>
	  <email>maven-central@cite.gr</email>
	  <organization>CITE S.A.</organization>
	  <organizationUrl>https://www.cite.gr</organizationUrl>
	 </developer>
	</developers>
	<scm>
	 <connection>scm:git:git://code.cite.gr</connection>
	 <developerConnection>scm:git:ssh://code.cite.gr</developerConnection>
	 <url>https://code.cite.gr</url>
	</scm>

    <properties>
        <maven.compiler.source>11</maven.compiler.source>
        <maven.compiler.target>11</maven.compiler.target>
		<revision>1.0.0-SNAPSHOT</revision>
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-cache</artifactId>
        </dependency>
        <dependency>
            <groupId>com.github.ben-manes.caffeine</groupId>
            <artifactId>caffeine</artifactId>
        </dependency>
    </dependencies>
	<profiles>
		<profile>
			<id>ossrh</id>
			<distributionManagement>
				<snapshotRepository>
					<id>ossrh</id>
					<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
				</snapshotRepository>
				<repository>
					<id>ossrh</id>
					<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2</url>
				</repository>
			</distributionManagement>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-install-plugin</artifactId>
						<version>2.5.2</version>
						<configuration>
							<createChecksum>true</createChecksum>
						</configuration>
					</plugin>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-gpg-plugin</artifactId>
						<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-jar-plugin</artifactId>
						<version>3.2.2</version>
						<executions>
							<execution>
								<id>javadoc-generation</id>
								<phase>package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<classifier>javadoc</classifier>
									<excludes>
										<exclude>gr/**</exclude>
									</excludes>
									<includes>
										<include>README.txt</include>
									</includes>
									<archive>
										<addMavenDescriptor>false</addMavenDescriptor>
									</archive>
								</configuration>
							</execution>
							<execution>
								<id>sources-generation</id>
								<phase>package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<classifier>sources</classifier>
									<excludes>
										<exclude>gr/**</exclude>
									</excludes>
									<includes>
										<include>README.txt</include>
									</includes>
									<archive>
										<addMavenDescriptor>false</addMavenDescriptor>
									</archive>
								</configuration>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
		<profile>
			<id>dev</id>
			<repositories>
				<repository>
					<id>cite-maven</id>
					<name>CITE Maven Repository</name>
					<url>https://crepo.cite.gr/repository/cite-maven/</url>
				</repository>
			</repositories>
			<activation>
				<activeByDefault>true</activeByDefault>
			</activation>
		</profile>
		<profile>
			<id>cite-maven</id>
			<repositories>
				<repository>
					<id>cite-maven</id>
					<name>CITE Maven Repository</name>
					<url>https://crepo.cite.gr/repository/cite-maven/</url>
				</repository>
			</repositories>
			<distributionManagement>
				<repository>
					<id>cite-maven</id>
					<name>CITE Maven Repository</name>
					<url>https://crepo.cite.gr/repository/maven-releases/</url>
				</repository>
			</distributionManagement>
		</profile>
	</profiles>
</project>