<?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>

	<groupId>com.jadaptive</groupId>
	<artifactId>jadaptive-microsaas-products-parent</artifactId>
	<version>0.6.0-SNAPSHOT</version>
	<packaging>pom</packaging>
	<name>Jadaptive MicroSaaS Products</name>
	<description>MicroSaaS product plugins for Jadaptive</description>
	<url>https://jadaptive.com</url>

	<distributionManagement>
		<repository>
			<id>libs-releases-local</id>
			<url>https://artifactory.jadaptive.com/libs-releases-local</url>
		</repository>
		<snapshotRepository>
			<id>libs-snapshots</id>
			<url>https://artifactory.jadaptive.com/libs-snapshots-local</url>
		</snapshotRepository>
	</distributionManagement>

	<scm>
		<url>https://github.com/ludup/jadaptive-microsaas-products</url>
		<connection>scm:git:https://github.com/ludup/jadaptive-microsaas-products</connection>
		<developerConnection>scm:git:https://github.com/ludup/jadaptive-microsaas-products</developerConnection>
	</scm>

	<developers>
		<developer>
			<id>jadaptive</id>
			<name>JADAPTIVE Limited</name>
			<email>info@jadaptive.com</email>
		</developer>
	</developers>

	<modules>
		<module>jadaptive-changelog-architect</module>
	</modules>

	<properties>
		<pf4j.version>3.3.0-SNAPSHOT</pf4j.version>
		<javadoc.disabled>true</javadoc.disabled>
		<deploy.disabled>true</deploy.disabled>
		<source.disabled>true</source.disabled>
		<maven.compiler.release>22</maven.compiler.release>
		<maven.compiler.parameters>true</maven.compiler.parameters>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
		<junit.version>5.11.4</junit.version>

		<!-- Override in each plugin child pom -->
		<plugin.id />
		<plugin.class />
		<plugin.version />
		<plugin.provider />
		<plugin.dependencies />
	</properties>

	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>org.junit.jupiter</groupId>
				<artifactId>junit-jupiter</artifactId>
				<version>${junit.version}</version>
				<scope>test</scope>
			</dependency>
			<dependency>
				<groupId>org.junit.jupiter</groupId>
				<artifactId>junit-jupiter-api</artifactId>
				<version>${junit.version}</version>
				<scope>test</scope>
			</dependency>
			<dependency>
				<groupId>org.junit.jupiter</groupId>
				<artifactId>junit-jupiter-engine</artifactId>
				<version>${junit.version}</version>
				<scope>test</scope>
			</dependency>
			<dependency>
				<groupId>org.junit.jupiter</groupId>
				<artifactId>junit-jupiter-params</artifactId>
				<version>${junit.version}</version>
				<scope>test</scope>
			</dependency>
		</dependencies>
	</dependencyManagement>

	<dependencies>
		<dependency>
			<groupId>org.junit.jupiter</groupId>
			<artifactId>junit-jupiter</artifactId>
			<scope>test</scope>
		</dependency>
	</dependencies>

	<build>
		<resources>
			<resource>
				<filtering>false</filtering>
				<directory>src/main/java</directory>
				<excludes>
					<exclude>**/*.java</exclude>
				</excludes>
			</resource>
			<resource>
				<directory>src/main/resources</directory>
			</resource>
		</resources>

		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<release>22</release>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-plugin</artifactId>
			</plugin>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>build-helper-maven-plugin</artifactId>
				<configuration>
					<skipAttach>true</skipAttach>
				</configuration>
				<executions>
					<execution>
						<id>attach-extension-zip</id>
						<phase>install</phase>
						<goals>
							<goal>attach-artifact</goal>
						</goals>
						<configuration>
							<artifacts>
								<artifact>
									<file>${project.build.directory}/plugin-def/${project.artifactId}/${project.artifactId}-${project.version}.zip</file>
									<type>zip</type>
									<classifier>jadx</classifier>
								</artifact>
							</artifacts>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>com.sshtools</groupId>
				<artifactId>codehash-maven-plugin</artifactId>
			</plugin>
		</plugins>

		<pluginManagement>
			<plugins>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-compiler-plugin</artifactId>
					<version>3.13.0</version>
					<configuration>
						<release>22</release>
						<parameters>true</parameters>
					</configuration>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-surefire-plugin</artifactId>
					<version>3.5.2</version>
				</plugin>
				<plugin>
					<groupId>com.sshtools</groupId>
					<artifactId>codehash-maven-plugin</artifactId>
					<version>0.9.0</version>
					<executions>
						<execution>
							<goals>
								<goal>generate-hashes</goal>
							</goals>
							<phase>generate-resources</phase>
							<id>genhashes</id>
						</execution>
					</executions>
					<configuration>
						<annotationName>com.jadaptive.api.template.ObjectDefinition</annotationName>
						<outputFile>object-definition-hashes.properties</outputFile>
					</configuration>
				</plugin>
				<plugin>
					<groupId>org.codehaus.mojo</groupId>
					<artifactId>build-helper-maven-plugin</artifactId>
					<version>3.2.0</version>
				</plugin>
				<plugin>
					<groupId>com.sshtools</groupId>
					<artifactId>pf4j-plugin-generator</artifactId>
					<version>0.1.2</version>
					<executions>
						<execution>
							<id>generate-plugin</id>
							<phase>install</phase>
							<goals>
								<goal>generate-plugin</goal>
							</goals>
						</execution>
					</executions>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-deploy-plugin</artifactId>
					<version>3.1.1</version>
				</plugin>
			</plugins>
		</pluginManagement>
	</build>

	<repositories>
		<repository>
			<id>libs-snapshots-local</id>
			<snapshots />
			<releases>
				<enabled>false</enabled>
			</releases>
			<url>https://artifactory.jadaptive.com/libs-snapshots-local/</url>
		</repository>
		<repository>
			<id>libs-releases-local</id>
			<releases />
			<snapshots>
				<enabled>false</enabled>
			</snapshots>
			<url>https://artifactory.jadaptive.com/libs-releases-local/</url>
		</repository>
		<repository>
			<id>oss-snapshots</id>
			<url>https://oss.sonatype.org/content/repositories/snapshots</url>
			<snapshots />
			<releases>
				<enabled>false</enabled>
			</releases>
		</repository>
	</repositories>

</project>
