<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>org.finos.springbot</groupId>
	<artifactId>spring-bot</artifactId>
	<version>10.0.2</version>

	<packaging>pom</packaging>
	<name>Spring Bot</name>
	<description>A collection of Java projects for building bots on Symphony and Teams</description>
	<url>https://github.com/finos/spring-bot</url>

	<parent>
		<groupId>org.finos</groupId>
		<artifactId>finos</artifactId>
		<version>2</version>
	</parent>

	<modules>
		<module>libs/chat-workflow</module>

		<!-- test resources for chat-workflow -->
		<module>libs/chat-workflow-testing</module>

		<!-- for storing data in JSON format -->
		<module>libs/entity-json</module>

		<!-- symphony support -->
		<module>libs/symphony/entities</module>
		<module>libs/symphony-bdk/symphony-bdk-chat-workflow-spring-boot-starter</module>

		<!-- teams support -->
		<module>libs/teams/teams-chat-workflow-spring-boot-starter</module>

		<!-- tools -->
		<module>tools/rss-bot</module>
		<module>tools/poll-bot</module>
		<module>tools/reminder-bot</module>

		<!-- demos -->
		<module>demos/demo-bot</module>
		<module>demos/custom-help-bot</module>
		<module>demos/todo-bot</module>
		<module>demos/claim-bot</module>
		<module>demos/rooms-bot</module>
		
		<module>libs/chat-workflow-coverage</module>
	</modules>

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

		<!-- this must match the version from the spring boot pom -->
		<jackson-databind.version>2.16.2</jackson-databind.version>
		<jackson.version>2.16.2</jackson.version>
		<jackson-annotations.version>2.16.2</jackson-annotations.version>
		<corenlp.version>4.4.0</corenlp.version>
		<sutime-models.version>1.3.5</sutime-models.version>
		<rometools.version>1.15.0</rometools.version>
		<teams.version>4.14.3</teams.version>
		<azure-storage-blob.version>12.20.1</azure-storage-blob.version>
		<okio-jvm.version>3.4.0</okio-jvm.version>
		<guava.version>32.1.0-jre</guava.version>
		<jsoup.version>1.17.2</jsoup.version>
		<graalvm.version>23.0.3</graalvm.version>
		<symphony-bdk.version>3.0.0</symphony-bdk.version>
		<!--<mimepull.version>1.9.15</mimepull.version>-->
		<!--<thymeleaf.version>2.7.0</thymeleaf.version>-->	
		<azure-core-http-netty.version>1.9.1</azure-core-http-netty.version>	
		<nimbus-jose-jwt.version>9.9.1</nimbus-jose-jwt.version>	
		<httpclient.version>4.5.13</httpclient.version>			
		<corenlp.version>4.5.7</corenlp.version>
		<azure-storage-blob.version>12.25.3</azure-storage-blob.version>
		<netty-handler.version>4.1.115.Final</netty-handler.version>
		<netty-codec.version>4.1.115.Final</netty-codec.version>
		<azure-msal4j.version>1.16.1</azure-msal4j.version>
	</properties>

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

	<organization>
		<name>Finos</name>
		<url>https://github.com/finos</url>
	</organization>

	<developers>
		<developer>
			<id>robmoffat</id>
			<name>Rob Moffat</name>
			<email>robert.moffat@db.com</email>
			<url>https://www.db.com</url>
			<organization>Deutsche Bank</organization>
			<roles>
				<role>developer</role>
			</roles>
		</developer>
		<developer>
			<id>sureshrupnar</id>
			<name>Suresh Rupnar</name>
			<email>suresh.rupnar@db.com</email>
			<roles>
				<role>developer</role>
			</roles>
		</developer>
	</developers>

	<scm>
		<developerConnection>scm:git:https://github.com/finos/spring-bot</developerConnection>
		<connection>scm:git@github.com:finos/spring-bot.git</connection>
		<tag>HEAD</tag>
		<url>https://github.com/finos/spring-bot</url>
	</scm>

	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-javadoc-plugin</artifactId>
				<version>3.1.1</version>
				<executions>
					<execution>
						<id>attach-javadocs</id>
						<goals>
							<goal>jar</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<!-- add this to disable checking -->
					<doclint>none</doclint>
					<failOnError>false</failOnError>
					<source>8</source>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>license-maven-plugin</artifactId>
				<version>2.0.0</version>
				<configuration>
					<licensesConfigFile>.github/workflows/licenses-config-file.xml</licensesConfigFile>
					<licensesOutputFile>target/generated-resources/aggregate-licenses.xml</licensesOutputFile>
					<excludedScopes>provided,system</excludedScopes>
				</configuration>
			</plugin>
		</plugins>
	</build>

	<profiles>
		<!-- using this profile creates Javadocs, etc. and signs the jars for upload 
			to maven central -->
		<profile>
			<id>symphony-release</id>
			<build>
				<plugins>
					<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>
						<configuration>
							<interactive>false</interactive>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>

		<profile>
			<!-- this profile generates code coverage, should be run by the ci server -->
			<id>symphony-ci</id>
			<build>
				<plugins>
					<plugin>
						<groupId>org.jacoco</groupId>
						<artifactId>jacoco-maven-plugin</artifactId>
						<version>0.8.12</version>
						<executions>
							<execution>
								<goals>
									<goal>prepare-agent</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-surefire-plugin</artifactId>
						<version>3.0.0-M5</version>
						<configuration>
							<includes>
								<include>**/*Test.java</include>
								<include>**/*IT.java</include>
								<include>**/Test*.java</include>
							</includes>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>

	<dependencyManagement>
		<dependencies>
			<!-- SpringBoot 2.7.0 pulls 1.10 version of below lib which is compiled with Java11 and hence causes errors
			<dependency>
				<groupId>org.jvnet.mimepull</groupId>
				<artifactId>mimepull</artifactId>
				<version>${mimepull.version}</version>
			</dependency>
 			-->
			<dependency>
				<groupId>com.fasterxml.jackson.core</groupId>
				<artifactId>jackson-databind</artifactId>
				<version>${jackson-databind.version}</version>
			</dependency>
			
			<dependency>
				<groupId>com.fasterxml.jackson.core</groupId>
				<artifactId>jackson-core</artifactId>
				<version>${jackson.version}</version>
			</dependency>
			
			<dependency>
				<groupId>com.fasterxml.jackson.core</groupId>
				<artifactId>jackson-annotations</artifactId>
				<version>${jackson-annotations.version}</version>
			</dependency>

			<dependency>
				<groupId>org.springframework.boot</groupId>
				<artifactId>spring-boot-dependencies</artifactId>
				<version>${spring-boot.version}</version>
				<type>pom</type>
				<scope>import</scope>
			</dependency>

			<dependency>
				<groupId>org.finos.symphony.bdk</groupId>
				<artifactId>symphony-bdk-bom</artifactId>
				<version>${symphony-bdk.version}</version>
				<type>pom</type>
				<scope>import</scope>
			</dependency>
			
 			<!-- currently required with teams.version=1.14.3, as 1.13 of protonpack is missing a license
 			     remove if teams upgrades to 1.16 or beyond -->
			<dependency>
			    <groupId>com.codepoetics</groupId>
			    <artifactId>protonpack</artifactId>
			    <version>1.16</version>
			</dependency>
			
			<!-- fixing CVE-2022-1471.  If we upgrade to a new version of spring-boot-dependencies this 
			  may no longer be needed -->
			<dependency>
			    <groupId>org.yaml</groupId>
			    <artifactId>snakeyaml</artifactId>
			    <version>2.2</version>
			</dependency> 
				
				
		</dependencies>
	</dependencyManagement>

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