<?xml version="1.0" encoding="UTF-8"?>
<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor
	license agreements. See the NOTICE file distributed with this work for additional
	information regarding copyright ownership. The ASF licenses this file to
	you under the Apache License, Version 2.0 (the "License"); you may not use
	this file except in compliance with the License. You may obtain a copy of
	the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
	by applicable law or agreed to in writing, software distributed under the
	License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
	OF ANY KIND, either express or implied. See the License for the specific
	language governing permissions and limitations under the License. -->
<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>org.apache.causeway.mavendeps</groupId>
		<artifactId>causeway-mavendeps</artifactId>
		<version>2.0.0-RC2</version>
	</parent>

	<artifactId>causeway-mavendeps-webapp</artifactId>

	<packaging>pom</packaging>

	<name>Apache Causeway Maven Deps - Webapp</name>
	<description>
        Defines a module that can be almost used as a single dependency for running
        an Apache Causeway webapp (Wicket, Restful Objects, GraphQL and Shiro security).

        Note: Also requires a persistence provider.
    </description>

	<dependencies>
		<!-- SPRING -->

		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-web</artifactId>
			<exclusions>
				<exclusion>
					<groupId>javax.validation</groupId>
					<artifactId>validation-api</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.springframework</groupId>
					<artifactId>spring-jcl</artifactId>
				</exclusion>
				<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-tomcat</artifactId>
			<scope>provided</scope>
		</dependency>

		<!-- CAUSEWAY API -->
		<dependency>
			<groupId>org.apache.causeway.core</groupId>
			<artifactId>causeway-applib</artifactId>
		</dependency>

		<dependency>
			<groupId>org.apache.causeway.core</groupId>
			<artifactId>causeway-schema</artifactId>
		</dependency>

		<dependency>
			<groupId>org.apache.causeway.core</groupId>
			<artifactId>causeway-core-security</artifactId>
		</dependency>

		<dependency>
			<groupId>org.apache.causeway.core</groupId>
			<artifactId>causeway-core-runtimeservices</artifactId>
		</dependency>

        <!--
        we do not include causeway-security-bypass, because doing so would
        in effect access to the app with any credentials.  This module is for use only in prototyping.
        <dependency>
            <groupId>org.apache.causeway.security</groupId>
            <artifactId>causeway-security-bypass</artifactId>
        </dependency>
        -->

		<!--
		we no longer include causeway-security-keycloak in order to reduce the
		3rd party dependencies.
		<dependency>
			<groupId>org.apache.causeway.security</groupId>
			<artifactId>causeway-security-keycloak</artifactId>
		</dependency>
		-->

		<!--
		we no longer include causeway-security-shiro in order to reduce the
		3rd party dependencies.  If only simple user/password authentication
		is required, Secman can now be used independently of Shiro.

		<dependency>
			<groupId>org.apache.causeway.security</groupId>
			<artifactId>causeway-security-shiro</artifactId>
		</dependency>
		-->

		<!--
		we deliberately do NOT include causeway-security-spring, because it
		has a transitive dependency on

			org.springframework.boot:spring-boot-starter-security

		 and that will (following a 'secure-by-default' philosophy)
		 automatically enable security on all endpoints

		<dependency>
			<groupId>org.apache.causeway.security</groupId>
			<artifactId>causeway-security-spring</artifactId>
		</dependency>
		-->

	</dependencies>

</project>
