<?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/maven-v4_0_0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<groupId>com.gitee.jmash</groupId>
	<artifactId>webp-imageio</artifactId>
	<packaging>jar</packaging>
	<name>webp-imageio</name>
	<version>0.2.2</version>
	<issueManagement>
		<system>GitHub</system>
		<url>https://github.com/sejda-pdf/webp-imageio/issues</url>
	</issueManagement>

	<description>webp support for ImageIO</description>
	<url>https://github.com/sejda-pdf/webp-imageio</url>

	<organization>
		<name>sejda.com</name>
		<url>http://www.sejda.com</url>
	</organization>

	<licenses>
		<license>
			<name>Apache License, Version 2.0</name>
			<url>http://www.apache.org/licenses/LICENSE-2.0</url>
			<distribution>repo</distribution>
			<comments>ASLv2</comments>
		</license>
	</licenses>

	<scm>
		<connection>scm:git:git@github.com:sejda-pdf/webp-imageio.git</connection>
		<developerConnection>scm:git:git@github.com:sejda-pdf/webp-imageio.git</developerConnection>
		<url>scm:git:git@github.com:sejda-pdf/webp-imageio.git</url>
		<tag>HEAD</tag>
	</scm>

	<developers>
		<developer>
			<id>ediweissmann</id>
			<name>Edi Weissmann</name>
			<email>edi.weissmann@gmail.com</email>
		</developer>
	</developers>

	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<maven.javadoc.failOnError>false</maven.javadoc.failOnError>
	</properties>

	<distributionManagement>
		<snapshotRepository>
			<id>ossrh</id>
			<url>https://oss.sonatype.org/content/repositories/snapshots</url>
		</snapshotRepository>
	</distributionManagement>

	<profiles>
		<!--        <profile>-->
		<!--            <id>toolchain</id>-->
		<!--            <activation>-->
		<!--                <property>-->
		<!--                    <name>env.CI</name>-->
		<!--                    <value>!true</value>-->
		<!--                </property>-->
		<!--            </activation>-->
		<!--            <build>-->
		<!--                <plugins>-->
		<!--                    <plugin>-->
		<!--                        <groupId>org.apache.maven.plugins</groupId>-->
		<!--                        <artifactId>maven-toolchains-plugin</artifactId>-->
		<!--                        <version>3.0.0</version>-->
		<!--                        <executions>-->
		<!--                            <execution>-->
		<!--                                <goals>-->
		<!--                                    <goal>toolchain</goal>-->
		<!--                                </goals>-->
		<!--                            </execution>-->
		<!--                        </executions>-->
		<!--                        <configuration>-->
		<!--                            <toolchains>-->
		<!--                                <jdk>-->
		<!--                                    <version>8</version>-->
		<!--                                </jdk>-->
		<!--                            </toolchains>-->
		<!--                        </configuration>-->
		<!--                    </plugin>-->
		<!--                </plugins>-->
		<!--            </build>-->
		<!--        </profile>-->
		<profile>
			<id>release</id>
			<build>
				<plugins>
					<!--                    <plugin>-->
					<!--                        <groupId>org.apache.maven.plugins</groupId>-->
					<!--                        <artifactId>maven-release-plugin</artifactId>-->
					<!--                        <version>2.5.3</version>-->
					<!--                        <configuration>-->
					<!--                            <tagNameFormat>v@{project.version}</tagNameFormat>-->
					<!--                            <preparationGoals>clean install</preparationGoals>-->
					<!--                            <localCheckout>true</localCheckout>-->
					<!--                        </configuration>-->
					<!--                    </plugin>-->
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-gpg-plugin</artifactId>
						<version>1.6</version>
						<executions>
							<execution>
								<id>sign-artifacts</id>
								<phase>verify</phase>
								<goals>
									<goal>sign</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>

	<build>
		<resources>
			<resource>
				<directory>src/main/resources</directory>
				<filtering>true</filtering>
				<includes>
					<include>**/*.properties</include>
				</includes>
			</resource>
			<resource>
				<directory>src/main/resources</directory>
				<filtering>false</filtering>
				<excludes>
					<exclude>**/*.properties</exclude>
				</excludes>
			</resource>
			<resource>
				<directory>src/javase/resources</directory>
			</resource>
		</resources>

		<plugins>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>build-helper-maven-plugin</artifactId>
				<executions>
					<execution>
						<phase>generate-sources</phase>
						<goals>
							<goal>add-source</goal>
						</goals>
						<configuration>
							<sources>
								<source>src/javase/java</source>
							</sources>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>3.8.1</version>
				<configuration>
					<source>1.8</source>
					<target>1.8</target>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-jar-plugin</artifactId>
				<version>3.1.2</version>
				<configuration>
					<archive>
						<manifestEntries>
							<Automatic-Module-Name>com.luciad.imageio.webp</Automatic-Module-Name>
						</manifestEntries>
					</archive>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-source-plugin</artifactId>
				<version>3.2.0</version>
				<executions>
					<execution>
						<id>attach-sources</id>
						<phase>verify</phase>
						<goals>
							<goal>jar-no-fork</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-plugin</artifactId>
				<version>3.0.0-M3</version>
				<configuration>
					<forkCount>0</forkCount>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-javadoc-plugin</artifactId>
				<version>3.2.0</version>
				<executions>
					<execution>
						<id>attach-javadocs</id>
						<goals>
							<goal>jar</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<additionalOptions>
						<additionalOption>-Xdoclint:none</additionalOption>
					</additionalOptions>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-gpg-plugin</artifactId>
				<version>1.5</version>
				<executions>
					<execution>
						<id>sign-artifacts</id>
						<phase>verify</phase>
						<goals>
							<goal>sign</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<!-- mvn clean deploy -P release -->
			<plugin>
				<groupId>org.sonatype.central</groupId>
				<artifactId>central-publishing-maven-plugin</artifactId>
				<version>0.4.0</version>
				<extensions>true</extensions>
				<configuration>
					<publishingServerId>central</publishingServerId>
					<tokenAuth>true</tokenAuth>
				</configuration>
			</plugin>
		</plugins>
	</build>

	<dependencies>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.12</version>
			<scope>test</scope>
		</dependency>
	</dependencies>
</project>

