<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>
	<parent>
		<groupId>com.graphql-java-generator</groupId>
		<artifactId>graphql-maven-plugin-project</artifactId>
		<version>1.7.0</version>
	</parent>
	<artifactId>graphql-java-server-dependencies</artifactId>
	<packaging>pom</packaging>
	<description>This pom module contains the needed dependencies for the code generated by graphql-java-generator, 
	when the plugin is in server mode. When you use maven plugin or the gradle plugin, just add this dependency 
	so that the generated code embeds the necessary dependencies: &lt;dependency&gt;&lt;groupId&gt;com.xyz&lt;/groupId&gt;
    &lt;artifactId&gt;mvn-web-deps&lt;/artifactId&gt; &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt; &lt;type&gt;pom&lt;/type&gt;
	&lt;/dependency&gt;</description>

	<dependencies>
		<!-- Dependencies for GraphQL -->
		<dependency>
			<!-- The needed runtime to link graphql-java to the spring boot stuff -->
			<groupId>com.graphql-java</groupId>
			<artifactId>graphql-java-spring-boot-starter-webmvc</artifactId>
		</dependency>

		<!-- Other dependencies -->
		<dependency>
			<groupId>javax.activation</groupId>
			<artifactId>activation</artifactId>
		</dependency>
		<dependency>
			<groupId>com.google.code.gson</groupId>
			<artifactId>gson</artifactId>
		</dependency>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-web</artifactId>
			<exclusions>
				<!-- Exclusion needed to remove logback and allow slf4j -->
				<exclusion>
					<groupId>org.springframework.boot</groupId>
					<artifactId>spring-boot-starter-logging</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter</artifactId>
			<exclusions>
				<!-- Exclusion needed to remove logback and allow slf4j -->
				<exclusion>
					<groupId>org.springframework.boot</groupId>
					<artifactId>spring-boot-starter-logging</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-websocket</artifactId>
		</dependency>
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-api</artifactId>
		</dependency>


		<!-- When building from the gradle plugin, this next dependency is mandatory 
			for code execution -->
		<dependency>
			<groupId>javax.xml.bind</groupId>
			<artifactId>jaxb-api</artifactId>
		</dependency>

		<dependency>
			<!-- You need to provide in your pom the fact the this dependency is provided. 
				This is to ensure that the embedded servlet container does not interfere 
				with the servlet container to which the war file is deployed -->
			<!-- If you just import the graphql-java-servlet-dependencies pom in your 
				own pom, this dependency is imported as compile scope -->
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-tomcat</artifactId>
			<scope>provided</scope>
		</dependency>
	</dependencies>

</project>