<?xml version="1.0" encoding="UTF-8"?>
<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.cibseven</groupId>
	  <artifactId>release-parent</artifactId>
	  <version>1.2.0</version>
  </parent>
    
    <groupId>org.cibseven.webapp.auth</groupId>
    <artifactId>common-auth</artifactId>
    <version>1.0.0</version>
    
    <properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<maven.compiler.source>1.8</maven.compiler.source>
		<maven.compiler.target>1.8</maven.compiler.target>
		
		<jjwt.version>0.12.6</jjwt.version>
		<swagger-annotations.version>2.2.27</swagger-annotations.version>
		<javax-servlet-api.version>6.0.0</javax-servlet-api.version>
		
		<project.git.url>${gitlab.url}/web/common/common-auth.git</project.git.url>
		
		<!-- REWRITE COPYRIGHT PARAMEMER FROM SUPER POM (CAMUNDA COPYRIGHT) -->
		<license.inlineHeader>Copyright CIB software GmbH and/or licensed to CIB software GmbH
under one or more contributor license agreements. See the NOTICE file
distributed with this work for additional information regarding copyright
ownership. CIB software licenses this file to you under the Apache License,
Version 2.0; 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.</license.inlineHeader>
		
    </properties>    
	
	<scm>
		<connection>scm:git:${project.git.url}</connection>
		<developerConnection>scm:git:${project.git.url}</developerConnection>
		<url>${project.git.url}</url>
		<tag>HEAD</tag>
	</scm>
	
    <dependencies>   
    	<dependency>						
			<groupId>jakarta.servlet</groupId>
		    <artifactId>jakarta.servlet-api</artifactId>		
			<version>${javax-servlet-api.version}</version>
			<scope>provided</scope>
		</dependency>	
		
		<dependency> <!-- https://github.com/jwtk/jjwt -->
		    <groupId>io.jsonwebtoken</groupId>
		    <artifactId>jjwt-api</artifactId>
		    <version>${jjwt.version}</version>
		</dependency>
		
		<dependency>
		    <groupId>io.jsonwebtoken</groupId>
		    <artifactId>jjwt-impl</artifactId>
		    <version>${jjwt.version}</version>
		</dependency>
		
		<dependency>
		    <groupId>io.jsonwebtoken</groupId>
		    <artifactId>jjwt-jackson</artifactId> <!-- or jjwt-gson if Gson is preferred -->
		    <version>${jjwt.version}</version>
		</dependency>
		
		<dependency>
			<groupId>io.swagger.core.v3</groupId>
        	<artifactId>swagger-annotations-jakarta</artifactId>
			<version>${swagger-annotations.version}</version>				
		</dependency>
    </dependencies>    

		<profiles>
			<profile>
				<id>add-missing-copyright</id>
				<build>
					<plugins>
						<plugin>
							<groupId>com.mycila</groupId>
							<artifactId>license-maven-plugin</artifactId>
							<version>5.0.0</version>
							<configuration>
								<mapping>
									<vue>XML_STYLE</vue>
								</mapping>
								<licenseSets>
									<licenseSet>
										<inlineHeader>${license.inlineHeader}</inlineHeader>
										<includes>
											<include>**/*.java</include>
											<include>**/*.js</include> 
											<include>**/*.vue</include>
										</includes>
									</licenseSet>
								</licenseSets>
							</configuration>
						</plugin>
					</plugins>
				</build>
			</profile>
	</profiles>

</project>
