<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>ch.want.funnel</groupId>
	<artifactId>extension-base</artifactId>
	<packaging>pom</packaging>
	<version>3.0.80</version>
	<name>funnel-extension-base</name>
	<url>http://www.funnel.travel/</url>
    <description>API and utils to create a funnel.travel extension</description>	

	<organization>
		<name>WaNT GmbH</name>
		<url>http://www.want.ch</url>
	</organization>
	<scm>
		<connection>
			scm:git:git@github.com:sniederb/funnel-travel-extension-base.git</connection>
		<url>scm:git:git@github.com:sniederb/funnel-travel-extension-base.git</url>
		<developerConnection>
			scm:git:git@github.com:sniederb/funnel-travel-extension-base.git</developerConnection>
		<tag>extension-base-3.0.80</tag>
	</scm>
	<issueManagement>
		<system>JIRA</system>
		<url>http://www.want.ch/jira/</url>
	</issueManagement>

	<ciManagement>
		<system>Jenkins</system>
		<url>http://www.want.ch/jenkins/</url>
	</ciManagement>
	
	<build>
		<finalName>funnel-extension-base-${project.version}</finalName>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-javadoc-plugin</artifactId>
				<version>3.6.3</version>
				<executions>
					<execution>
						<id>attach-javadocs</id>
						<goals>
							<goal>jar</goal>
						</goals>
						<configuration>
							<doclint>all,-missing</doclint>
							<failOnError>false</failOnError>
        					<quiet>true</quiet>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<plugin>
        		<groupId>org.apache.maven.plugins</groupId>
        		<artifactId>maven-source-plugin</artifactId>
        		<version>3.3.1</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-compiler-plugin</artifactId>
				<version>3.12.1</version>
				<configuration>
					<parameters>true</parameters>
					<source>${maven.compiler.source}</source>
					<target>${maven.compiler.target}</target>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-install-plugin</artifactId>
				<version>3.1.1</version>
				<!-- See https://www.want.ch/jira/browse/FUN-126 reg. installAtEnd -->
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-deploy-plugin</artifactId>
				<version>3.1.1</version>
				<!-- See https://www.want.ch/jira/browse/FUN-126 reg. deployAtEnd -->
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-plugin</artifactId>
				<version>3.2.5</version>
				<configuration>
					<argLine>
						-Djdk.net.URLClassPath.disableClassPathURLCheck=true</argLine>
				</configuration>
			</plugin>
			<plugin>
				<artifactId>maven-checkstyle-plugin</artifactId>
				<version>${maven-checkstyle-plugin.version}</version>
				<dependencies>
					<dependency>
						<groupId>com.puppycrawl.tools</groupId>
						<artifactId>checkstyle</artifactId>
						<version>${checkstyle.latest.version}</version>
					</dependency>
				</dependencies>
				<configuration>
					<configLocation>./checkstyle-rules.xml</configLocation>
					<suppressionsLocation>./checkstyle-suppressions.xml</suppressionsLocation>
				</configuration>
			</plugin>
			<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-gpg-plugin</artifactId>
                <version>3.2.4</version>
                <configuration>
            		<keyname>0x14A8134F</keyname>
            		<passphraseServerId>central</passphraseServerId>
            		<gpgArguments>
    					<arg>--pinentry-mode</arg>
    					<arg>loopback</arg>	
  					</gpgArguments>
          		</configuration>
          		<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-release-plugin</artifactId>
				<version>2.5.3</version>
				<configuration>
					<arguments>-DskipTests</arguments>
				</configuration>
			</plugin>
			<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>
            		<autoPublish>true</autoPublish>
            		<!-- uploaded | validated | published -->
            		<waitUntil>validated</waitUntil>
          		</configuration>
        	</plugin>
		</plugins>
	</build>

	<modules>
		<module>extension-api</module>
		<module>extension-util</module>
	</modules>

	<developers>
		<developer>
			<id>simon</id>
			<name>Simon Niederberger</name>
			<email>simon.niederberger@want.ch</email>
			<url>http://www.want.ch/</url>
			<organization>WaNT GmbH</organization>
			<roles>
		        <role>Developer</role>
		      </roles>
		</developer>
	</developers>
	
	<licenses>
    	<license>
      		<name>The Apache Software License, Version 2.0</name>
      		<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
      		<distribution>repo</distribution>
    	</license>
  	</licenses>

	<properties>
		<maven.compiler.source>17</maven.compiler.source>
		<maven.compiler.target>17</maven.compiler.target>
		<!-- Encoding for .java files -->
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<!-- Encoding for .xml files generated from unit tests -->
		<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

		<junit.version>5.9.1</junit.version>
		<!-- These two version need to be roughly in sync, otherwise you'll get -->
		<!-- An API incompatibility was encountered while executing org.apache.maven.plugins:maven-checkstyle-plugin -->
		<checkstyle.latest.version>9.3</checkstyle.latest.version>
		<maven-checkstyle-plugin.version>3.3.1</maven-checkstyle-plugin.version>
		
		<!-- Library versions, kept in sync with funnel.travel -->
		<jackson.version>2.19.2</jackson.version>
	</properties>

</project>