<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.suncode</groupId>
		<artifactId>plusworkflow</artifactId>
		<version>4.1.106</version>
	</parent>

	<groupId>com.suncode.client</groupId>
	<artifactId>suncode-cloud</artifactId>
	<version>4.1.106</version>
	<packaging>war</packaging>
	<name>Suncode Cloud</name>

	<dependencies>
		<dependency>
			<groupId>com.suncode</groupId>
			<artifactId>plusworkflow-web</artifactId>
			<type>war</type>
		</dependency>
		<dependency>
			<groupId>com.suncode</groupId>
			<artifactId>plusworkflow-api</artifactId>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>com.suncode</groupId>
			<artifactId>cuf-all</artifactId>
			<type>pom</type>
			<scope>provided</scope>
		</dependency>

		<!-- 
			Bundled plugins
			When adding new plugin here, `maven-dependency-plugin:bundle-plugins:includeArtifactIds` needs to be updated as well
		-->
		<dependency>
			<groupId>com.suncode.plugin</groupId>
			<artifactId>favourites</artifactId>
			<version>4.0.19</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>com.suncode.plugin</groupId>
			<artifactId>plusworkflow-gadgets</artifactId>
			<version>4.2.5</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>com.suncode.plugin</groupId>
			<artifactId>dbexplorer</artifactId>
			<version>4.2.25</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>com.suncode.plugin</groupId>
			<artifactId>pwe</artifactId>
			<version>4.2.32</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>com.suncode</groupId>
			<artifactId>auto-update-plusworkflow-agent</artifactId>
			<version>4.0.30-PWFLAKT-81-1</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>com.suncode</groupId>
			<artifactId>cuf-components</artifactId>
			<version>1.1.48</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>com.suncode.plugin</groupId>
			<artifactId>suncode-store</artifactId>
			<version>4.0.0</version>
			<scope>provided</scope>
		</dependency>
	</dependencies>

	<build>
		<plugins>
			<plugin>
				<artifactId>maven-war-plugin</artifactId>
				<configuration>
					<failOnMissingWebXml>false</failOnMissingWebXml>
				</configuration>
			</plugin>
			<plugin>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<source>1.8</source>
					<target>1.8</target>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-dependency-plugin</artifactId>
				<executions>
					<execution>
						<id>bundle-plugins</id>
						<goals>
							<goal>copy-dependencies</goal>
						</goals>
						<phase>process-resources</phase>
						<configuration>
							<outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/classes/bundled-plugins</outputDirectory>
							<includeArtifactIds>
								pwe,
								favourites,
								plusworkflow-gadgets,
								dbexplorer,
								auto-update-plusworkflow-agent,
								cuf-components,
								suncode-store
							</includeArtifactIds>
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
</project>
