<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>io.github.belarus</groupId>
	<artifactId>linguistics.grammardb.spell.languagetool</artifactId>
	<version>1.0.2</version>
	<packaging>pom</packaging>

	<name>GrammarDB-LanguageTool</name>
	<description>GrammarDB dictionary for LanguageTool</description>
	<url>https://github.com/Belarus/GrammarDB</url>

	<licenses>
		<license>
			<name>CC-BY-SA-4.0 license</name>
			<url>https://creativecommons.org/licenses/by-sa/4.0/</url>
		</license>
	</licenses>

	<developers>
		<developer>
			<name>Aleś Bułojčyk</name>
			<email>alex73mail@gmail.com</email>
		</developer>
	</developers>

	<scm>
		<connection>scm:git:git://github.com/Belarus/GrammarDB.git</connection>
		<developerConnection>scm:git:ssh://github.com:Belarus/GrammarDB.git</developerConnection>
		<url>http://github.com/Belarus/GrammarDB/tree/master</url>
	</scm>

	<distributionManagement>
		<repository>
			<id>ossrh</id>
			<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
		</repository>
	</distributionManagement>

	<build>
		<plugins>
			<plugin>
				<groupId>io.github.belarus</groupId>
				<artifactId>linguistics.grammardb.spell.compiler</artifactId>
				<version>1.0.1</version>
				<executions>
					<execution>
						<id>xml2text</id>
						<goals>
							<goal>export-spell-checker</goal>
						</goals>
						<configuration>
							<xmlDataDir>../data</xmlDataDir>
							<textOutputFile>${project.build.directory}/spellchecker/slovy-2008.txt</textOutputFile>
							<textOutputFileWithStress>${project.build.directory}/spellchecker/slovy-2008-stress.txt</textOutputFileWithStress>
						</configuration>
					</execution>
					<execution>
						<id>text2dict</id>
						<goals>
							<goal>compile-lt-spell-checker</goal>
						</goals>
						<configuration>
							<inputText>${project.build.directory}/spellchecker/slovy-2008.txt</inputText>
							<inputInfo>be_BY.info</inputInfo>
							<outputDict>${project.build.directory}/be_BY.dict</outputDict>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-assembly-plugin</artifactId>
				<executions>
					<execution>
						<phase>package</phase>
						<goals>
							<goal>single</goal>
						</goals>
						<configuration>
							<appendAssemblyId>false</appendAssemblyId>
							<descriptors>
								<descriptor>spell-assembly.xml</descriptor>
							</descriptors>
						</configuration>
					</execution>
				</executions>
			</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-no-fork</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-javadoc-plugin</artifactId>
				<version>3.6.3</version>
				<configuration>
					<additionalOptions>
						<additionalOption>-Xdoclint:none</additionalOption>
					</additionalOptions>
				</configuration>
				<executions>
					<execution>
						<id>attach-javadocs</id>
						<goals>
							<goal>jar</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-gpg-plugin</artifactId>
				<version>3.1.0</version>
				<executions>
					<execution>
						<id>sign-artifacts</id>
						<phase>verify</phase>
						<goals>
							<goal>sign</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>

</project>
