<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>

	<groupId>dev.apeekflow.plugin</groupId>
	<artifactId>apeekflow-plugin-api</artifactId>
	<version>2.3.0</version>

	<name>apeekflow-plugin-api</name>
	<description>Apeekflow shared plugin interfaces</description>
	<url>https://apeekflow.dev</url>

	<properties>
		<java.version>17</java.version>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<maven.compiler.source>17</maven.compiler.source>
		<maven.compiler.target>17</maven.compiler.target>
	</properties>

	<scm>
		<connection>scm:git:git@github.com:apeekdev/apeekflow-plugin-api.git</connection>
		<developerConnection>scm:git:ssh://github.com:apeekdev/apeekflow-plugin-api.git</developerConnection>
		<url>https://github.com/apeekdev/apeekflow-plugin-api/tree/main</url>
	</scm>

	<licenses>
		<license>
			<name>The Apache License, Version 2.0</name>
			<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
		</license>
	</licenses>

	<developers>
		<developer>
			<name>Apeekflow Dev Team</name>
			<email>team@apeekflow.dev</email>
			<organization>Apeekflow Software Ltd</organization>
			<organizationUrl>https://apeekflow.dev</organizationUrl>
		</developer>
	</developers>

	<dependencies>
	</dependencies>

	<!-- <build>
		<plugins>
			<plugin>
				<groupId>org.sonatype.central</groupId>
				<artifactId>central-publishing-maven-plugin</artifactId>
				<version>0.5.0</version>
				<extensions>true</extensions>
				<configuration>
					<publishingServerId>central</publishingServerId>
				</configuration>
			</plugin>
		</plugins>
	</build> -->


	<profiles>
		<profile>
			<id>release</id>
			<activation>
				<property>
					<name>performRelease</name>
					<value>true</value>
				</property>
			</activation>
			
			<build>
				<plugins>
					<!-- Maven Publishing Plugin -->
					<plugin>
						<groupId>org.sonatype.central</groupId>
						<artifactId>central-publishing-maven-plugin</artifactId>
						<version>0.5.0</version>
						<extensions>true</extensions>
						<configuration>
							<publishingServerId>central</publishingServerId>
						</configuration>
					</plugin>

					
					<!-- Maven GPG Plugin -->
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-gpg-plugin</artifactId>
						<version>3.2.4</version>
						<executions>
							<execution>
								<id>sign-artifacts</id>
								<phase>verify</phase>
								
								<goals>
									<goal>sign</goal>
								</goals>
								
								<configuration>
									<gpgArguments>
										<arg>--pinentry-mode</arg>
										<arg>loopback</arg>
									</gpgArguments>
									<gpg.keyname>8F3EAC15B5F8045441C62E088643D3C1773A9E44</gpg.keyname>
									<gpg.passphraseServerId>AQNkNMZ4rCXZUs7EWjn</gpg.passphraseServerId>
								</configuration>
							</execution>
						</executions>
					</plugin>
					
					 <!-- Maven Javadoc Plugin -->
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-javadoc-plugin</artifactId>
						<version>3.7.0</version>
						<executions>
							<execution>
								<id>attach-javadocs</id>
								<goals>
									<goal>jar</goal>
								</goals>
							</execution>
						</executions>
						<configuration>
							<javadocExecutable>/usr/lib/jvm/java-17-openjdk-amd64/bin/javadoc</javadocExecutable>
						</configuration>
					</plugin>
					
					<!-- Maven Source Plugin -->
					<!-- <plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-source-plugin</artifactId>
						<version>3.3.0</version>
						<executions>
							<execution>
								<id>attach-sources</id>
								<goals>
									<goal>jar</goal>
								</goals>
							</execution>
						</executions>
					</plugin> -->

				</plugins>
			</build>
		</profile>
	</profiles>

</project>
